2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-29 12:06:44 +00:00

Always display category

- Display full category path
This commit is contained in:
Oliver Walters 2019-04-14 12:25:21 +10:00
parent 9d98c429d6
commit 00c21d521e

View File

@ -149,21 +149,19 @@
field: 'description', field: 'description',
title: 'Description', title: 'Description',
}, },
{% if category == None %}
{ {
sortable: true, sortable: true,
field: 'category', field: 'category',
title: 'Category', title: 'Category',
formatter: function(value, row, index, field) { formatter: function(value, row, index, field) {
if (row.category) { if (row.category) {
return renderLink(row.category.name, row.category.url); return renderLink(row.category.pathstring, row.category.url);
} }
else { else {
return ''; return '';
} }
} }
}, },
{% endif %}
{ {
field: 'total_stock', field: 'total_stock',
title: 'Stock', title: 'Stock',