From a013d78947f418fff32f70e912bcac3127ad5f2a Mon Sep 17 00:00:00 2001 From: nathangray Date: Wed, 26 Aug 2020 13:47:11 -0600 Subject: [PATCH] Partially revert 26a6749 as it's been handled elsewhere (030dafc0a7c9bdc6677afe87fa69615068acb4c0,d525347275a2268ed9624d35ddbd4e43a345179d) --- api/js/etemplate/et2_extension_nextmatch.js | 5 ----- api/js/etemplate/et2_extension_nextmatch.ts | 7 ------- 2 files changed, 12 deletions(-) diff --git a/api/js/etemplate/et2_extension_nextmatch.js b/api/js/etemplate/et2_extension_nextmatch.js index 33a0d9165b..e9affe39a4 100644 --- a/api/js/etemplate/et2_extension_nextmatch.js +++ b/api/js/etemplate/et2_extension_nextmatch.js @@ -601,11 +601,6 @@ var et2_nextmatch = /** @class */ (function (_super) { if (type === void 0) { type = et2_nextmatch.ADD; } var index = egw.preference("lazy-update") == "lazy" ? 0 : (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 && type != et2_nextmatch.UPDATE) { - // return false; - } // No add, do a full refresh if (index === false) { return false; diff --git a/api/js/etemplate/et2_extension_nextmatch.ts b/api/js/etemplate/et2_extension_nextmatch.ts index 4f560aac1c..21fac86741 100644 --- a/api/js/etemplate/et2_extension_nextmatch.ts +++ b/api/js/etemplate/et2_extension_nextmatch.ts @@ -901,13 +901,6 @@ export class et2_nextmatch extends et2_DOMWidget implements et2_IResizeable, et2 let index : boolean | number = egw.preference("lazy-update") == "lazy" ? 0 : (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 && type != et2_nextmatch.UPDATE) - { - // return false; - } - // No add, do a full refresh if(index === false) {