Merge pull request #2387 from SchrodingersGat/po-table-fix

Don't be dull, check for null
This commit is contained in:
Oliver 2021-11-30 15:59:35 +11:00 committed by GitHub
commit 684dce9a3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -701,6 +701,11 @@ function loadPurchaseOrderTable(table, options) {
switchable: true,
sortable: false,
formatter: function(value, row) {
if (!row.responsible_detail) {
return '-';
}
var html = row.responsible_detail.name;
if (row.responsible_detail.label == 'group') {