]> git.proxmox.com Git - pmg-gui.git/commitdiff
spam quarantine controller: fix args when calling the parent multiSelect
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 7 Nov 2022 12:09:33 +0000 (13:09 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 7 Nov 2022 12:16:51 +0000 (13:16 +0100)
arguments needs to be an array, often we call with all of ours, iow.
using `arguments` which itself is an array already.

Both, manual construction and just a passing `arguments` have their
advantage and disadvantage, e.g., if either the inheriting or
bequesting class becomes more specialized, but most of the time using
`arguments` is more future proof.

Fixes: e66c888 ("quarantine: refactor spamquarantine controller")
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
js/SpamQuarantine.js

index 388fc025e8e807d40420378593cc5439c8401436..7487c8f31d147169e766e588922524b55a089c91 100644 (file)
@@ -51,7 +51,7 @@ Ext.define('PMG.SpamQuarantineController', {
        spam.setDisabled(true);
        spam.setPressed(false);
        me.lookupReference('spaminfo').setVisible(false);
-       me.callParent(selection);
+       me.callParent(arguments);
     },
 
     toggleSpamInfo: function(btn) {