From a054cec7c9105ad28858ccda1502b4c7f1d40ec0 Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 5 Oct 2017 22:51:33 -0700 Subject: [PATCH] Supress output if no title is given MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This should never happen, but…. --- resources/views/partials/bootstrap-table.blade.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/resources/views/partials/bootstrap-table.blade.php b/resources/views/partials/bootstrap-table.blade.php index ce1889f6be..ef2e4c9612 100644 --- a/resources/views/partials/bootstrap-table.blade.php +++ b/resources/views/partials/bootstrap-table.blade.php @@ -311,6 +311,11 @@ $('.snipe-table').bootstrapTable({ // for custom fields in a more useful way. function customFieldsFormatter(value, row) { + + if ((!this) || (!this.title)) { + return ''; + } + var field_column = this.title; // Pull out any HTMl that might be passed via the presenter