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',
title: 'Description',
},
{% if category == None %}
{
sortable: true,
field: 'category',
title: 'Category',
formatter: function(value, row, index, field) {
if (row.category) {
return renderLink(row.category.name, row.category.url);
return renderLink(row.category.pathstring, row.category.url);
}
else {
return '';
}
}
},
{% endif %}
{
field: 'total_stock',
title: 'Stock',