mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-01 04:56:45 +00:00
Correctly handle StockTrackingItem if there is no user data
This commit is contained in:
parent
20acf1f692
commit
68ec5df371
@ -220,7 +220,14 @@
|
|||||||
field: 'user',
|
field: 'user',
|
||||||
title: 'User',
|
title: 'User',
|
||||||
formatter: function(value, row, index, field) {
|
formatter: function(value, row, index, field) {
|
||||||
return value.username;
|
if (value)
|
||||||
|
{
|
||||||
|
return value.username;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return "No user information";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user