From cb5b35e2d08f6889dc0ce034fb77ccb0985a7e8b Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Tue, 7 Apr 2020 11:10:26 +0200 Subject: [PATCH] Fix select all action breaks addressbook's contextmenu --- addressbook/js/app.js | 2 ++ addressbook/js/app.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/addressbook/js/app.js b/addressbook/js/app.js index 2a5aac58b1..e8465d4d4f 100644 --- a/addressbook/js/app.js +++ b/addressbook/js/app.js @@ -1090,6 +1090,8 @@ var AddressbookApp = /** @class */ (function (_super) { var _a; var list = app.status.getEntireList(); for (var sel in _selected) { + if (sel == '0' && _selected[sel]['id'] == 'nm') + continue; var row = egw.dataGetUIDdata(_selected[sel]['id']); var enabled = false; for (var entry in list) { diff --git a/addressbook/js/app.ts b/addressbook/js/app.ts index 2f0f120e2d..502e01ab37 100644 --- a/addressbook/js/app.ts +++ b/addressbook/js/app.ts @@ -1328,6 +1328,7 @@ class AddressbookApp extends EgwApp let list = app.status.getEntireList(); for (let sel in _selected) { + if (sel == '0' && _selected[sel]['id'] == 'nm') continue; let row = egw.dataGetUIDdata(_selected[sel]['id']); let enabled = false; for(let entry in list)