From 8bdf9e27f66fe050e67edfd579228911c823cbcc Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 4 Jul 2018 17:09:44 +0200 Subject: [PATCH] Fix empty row on nm response --- api/js/etemplate/et2_dataview_controller.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/js/etemplate/et2_dataview_controller.js b/api/js/etemplate/et2_dataview_controller.js index 164cf6a723..fcedfac902 100644 --- a/api/js/etemplate/et2_dataview_controller.js +++ b/api/js/etemplate/et2_dataview_controller.js @@ -876,7 +876,7 @@ var et2_dataview_controller = (function(){ "use strict"; return Class.extend({ if(_response.total == 0) { - this.self._emptyRow(); + this.self._emptyRow(true); } else { @@ -900,7 +900,7 @@ var et2_dataview_controller = (function(){ "use strict"; return Class.extend({ */ _emptyRow: function(_noRows) { - var noRows = _noRows || true; + var noRows = !_noRows ? false : true; jQuery(".egwGridView_empty",this._grid.innerTbody).remove(); if(typeof this._grid._rowProvider != "undefined" && this._grid._rowProvider.getPrototype("empty")) {