From 687496fb2d746bab4b8766940ad6b09bfb2771b2 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 6 Apr 2020 11:27:09 +0200 Subject: [PATCH] A fix for addressbook's action select all no longer works --- addressbook/js/app.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/addressbook/js/app.js b/addressbook/js/app.js index 32a90f7e3d..43874ab11b 100644 --- a/addressbook/js/app.js +++ b/addressbook/js/app.js @@ -1319,6 +1319,11 @@ app.classes.addressbook = AppJS.extend( videoconference_isUserOnline: function(_action, _selected) { let list = app.status.getEntireList(); + + //todo: this is a hack to get selectall action works, since the selected object includes nm parent object as + // first object in the list which is not expected at all. This should be removed after fixing action system. + if (_selected[0]['id'] == 'nm') _selected.splice(0,1); + for (let sel in _selected) { let row = egw.dataGetUIDdata(_selected[sel]['id']);