Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Commit

Permalink
fix(Addressbook): structure panel throws error when empty
Browse files Browse the repository at this point in the history
Change-Id: If4224030a6c0a105e09a32250e5b7b2bcbb7f946
Reviewed-on: http://gerrit.tine20.com/customers/15949
Tested-by: Jenkins CI (http://ci.tine20.com/) <tine20-jenkins@metaways.de>
Reviewed-by: Philipp Schüle <p.schuele@metaways.de>
  • Loading branch information
corneliusweiss authored and pschuele committed Mar 3, 2020
1 parent 9dd5f23 commit eb04b1e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tine20/Tinebase/js/widgets/ActionUpdater.js
Expand Up @@ -100,13 +100,14 @@
* @param {Array|Tine.Tinebase.Model.Container} container
*/
updateActions: function(records, container) {
records = records || [];
var isFilterSelect = false,
selectionModel = null;

if (typeof(records.getSelections) == 'function') {
isFilterSelect = records.isFilterSelect;
selectionModel = records;
records = records.getSelections();
records = records.getSelections() || [];
} else if (typeof(records.beginEdit) == 'function') {
records = [records];
}
Expand Down

0 comments on commit eb04b1e

Please sign in to comment.