Bug fix for SupplierPart table

This commit is contained in:
Oliver Walters 2020-11-12 20:14:10 +11:00
parent fd79f1ea0e
commit 534f43872f

View File

@ -187,7 +187,7 @@ function loadSupplierPartTable(table, url, options) {
field: 'manufacturer', field: 'manufacturer',
title: '{% trans "Manufacturer" %}', title: '{% trans "Manufacturer" %}',
formatter: function(value, row, index, field) { formatter: function(value, row, index, field) {
if (value) { if (value && row.manufacturer_detail) {
var name = row.manufacturer_detail.name; var name = row.manufacturer_detail.name;
var url = `/company/${value}/`; var url = `/company/${value}/`;
var html = imageHoverIcon(row.manufacturer_detail.image) + renderLink(name, url); var html = imageHoverIcon(row.manufacturer_detail.image) + renderLink(name, url);