2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-05-01 13:06:45 +00:00

Correctly handle StockTrackingItem if there is no user data

This commit is contained in:
Oliver Walters 2019-04-12 23:03:02 +10:00
parent 20acf1f692
commit 68ec5df371

View File

@ -220,8 +220,15 @@
field: 'user', field: 'user',
title: 'User', title: 'User',
formatter: function(value, row, index, field) { formatter: function(value, row, index, field) {
if (value)
{
return value.username; return value.username;
} }
else
{
return "No user information";
}
}
} }
], ],
url: "{% url 'api-stock-track' %}", url: "{% url 'api-stock-track' %}",