From 0b57f74e36c6dcfc93d1a72788a61f8d92dafb84 Mon Sep 17 00:00:00 2001 From: snipe Date: Fri, 22 Jul 2016 02:14:12 -0700 Subject: [PATCH] =?UTF-8?q?Check=20for=20model=20name=20(this=20should=20n?= =?UTF-8?q?ever=20be=20blank,=20but=E2=80=A6)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/views/hardware/checkout.blade.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/resources/views/hardware/checkout.blade.php b/resources/views/hardware/checkout.blade.php index 35ad67d409..6345794a96 100755 --- a/resources/views/hardware/checkout.blade.php +++ b/resources/views/hardware/checkout.blade.php @@ -320,7 +320,12 @@ $(function() { for (var i in data) { var asset = data[i]; - table_html += "" + asset.name + " (" + asset.model.name + ")" + asset.asset_tag + ""; + table_html += "" + asset.name; + if (asset.model.name!='') { + table_html += " (" + asset.model.name + ")"; + + } + table_html += "" + asset.asset_tag + ""; } $('#current_assets_content').html(table_html + '');