]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: fix search for 'Guests without Backup' window
authorLukas Wagner <l.wagner@proxmox.com>
Fri, 20 Jan 2023 08:47:10 +0000 (09:47 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 20 Jan 2023 08:55:01 +0000 (09:55 +0100)
In JS, a `for (const a in <...>)` loop iterates over indices, not
over values. To iterate over values, `for (const a of <..>)` has
to be used. Furthermore, filtering by ID did not work properly, since
the property is called `vmid`, not `id`.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
www/manager6/dc/BackupJobDetail.js

index c82f50f4eb79944839aa75674dc25247ac01c377..c4683a47676d340372232ebca7f9e1294459be17 100644 (file)
@@ -460,7 +460,7 @@ Ext.define('PVE.dc.BackedGuests', {
                            me.store.clearFilter(true);
                            me.store.filterBy(function(record) {
                                let data = record.data;
-                               for (const property in ['name', 'id', 'type']) {
+                               for (const property of ['name', 'vmid', 'type']) {
                                    if (data[property] === null) {
                                        continue;
                                    }