From eb53daab31bdc5543944c8d2ce1b03f24b951725 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 20 Aug 2020 15:19:15 +0200 Subject: [PATCH] Make commit 26a6749b3dca0e95f3fd1bd5ff0731e3599033bf condition available only for refresh add --- api/js/etemplate/et2_extension_nextmatch.js | 2 +- api/js/etemplate/et2_extension_nextmatch.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/js/etemplate/et2_extension_nextmatch.js b/api/js/etemplate/et2_extension_nextmatch.js index 37be55d495..820d369dcd 100644 --- a/api/js/etemplate/et2_extension_nextmatch.js +++ b/api/js/etemplate/et2_extension_nextmatch.js @@ -597,7 +597,7 @@ var et2_nextmatch = /** @class */ (function (_super) { (this.is_sorted_by_modified() ? 0 : false); // workaround for datagrid deleting the last row, see ticket #48204 // if we only have a couple of rows, do a full refresh instead - if (this.controller.getTotalCount() < 15) { + if (this.controller.getTotalCount() < 15 && type != et2_nextmatch.UPDATE) { return false; } // No add, do a full refresh diff --git a/api/js/etemplate/et2_extension_nextmatch.ts b/api/js/etemplate/et2_extension_nextmatch.ts index 2e675f663d..8e079e1cd6 100644 --- a/api/js/etemplate/et2_extension_nextmatch.ts +++ b/api/js/etemplate/et2_extension_nextmatch.ts @@ -894,7 +894,7 @@ export class et2_nextmatch extends et2_DOMWidget implements et2_IResizeable, et2 // workaround for datagrid deleting the last row, see ticket #48204 // if we only have a couple of rows, do a full refresh instead - if (this.controller.getTotalCount() < 15) + if (this.controller.getTotalCount() < 15 && type != et2_nextmatch.UPDATE) { return false; }