mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 12:06:44 +00:00
Merge pull request #2387 from SchrodingersGat/po-table-fix
Don't be dull, check for null
This commit is contained in:
commit
684dce9a3e
@ -701,6 +701,11 @@ function loadPurchaseOrderTable(table, options) {
|
|||||||
switchable: true,
|
switchable: true,
|
||||||
sortable: false,
|
sortable: false,
|
||||||
formatter: function(value, row) {
|
formatter: function(value, row) {
|
||||||
|
|
||||||
|
if (!row.responsible_detail) {
|
||||||
|
return '-';
|
||||||
|
}
|
||||||
|
|
||||||
var html = row.responsible_detail.name;
|
var html = row.responsible_detail.name;
|
||||||
|
|
||||||
if (row.responsible_detail.label == 'group') {
|
if (row.responsible_detail.label == 'group') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user