Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Truncate characters in stock location name

Anna Siwikfbfca6902b2a
diff --git a/templates/dashboard/order/detail.html b/templates/dashboard/order/detail.html
index f2bd2e61ce..445b2e04e2 100644
--- a/templates/dashboard/order/detail.html
+++ b/templates/dashboard/order/detail.html
@@ -313,7 +313,7 @@
<td class="right-align">
{% if group.can_edit_items %}
<a class="dropdown-button" href="#" data-activates="line-actions-{{ item.pk }}" data-constrainwidth="false">
- {{ item.quantity }} {% if item.stock_location %} ({{ item.stock_location|default:"-" }}) {% endif %}
+ {{ item.quantity }} {% if item.stock_location %} ({{ item.stock_location|truncatechars:10 }}) {% endif %}
<svg data-src="{% static "dashboard/images/arrow_drop_down.svg" %}" width="24" height="24" />
</a>
<ul id="line-actions-{{ item.pk }}" class="dropdown-content">