[pve-devel] [PATCH pve-manager 2/5] initialize Diffstore sorters and filters with empty arrays
Emmanuel Kasper
e.kasper at proxmox.com
Thu Mar 17 10:31:09 CET 2016
ExtJS expect this properties to be arrays of Filters/Sorters
objects, but sets them to null
setting an empty array here allows to push sorters/filters easily
later
This fix allows loading the Hardware Tab of the Qemu Panel
---
www/manager6/grid/ObjectGrid.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/www/manager6/grid/ObjectGrid.js b/www/manager6/grid/ObjectGrid.js
index e59dc00..466e7be 100644
--- a/www/manager6/grid/ObjectGrid.js
+++ b/www/manager6/grid/ObjectGrid.js
@@ -66,7 +66,10 @@ Ext.define('PVE.grid.ObjectGrid', {
var rstore = me.rstore;
- var store = Ext.create('PVE.data.DiffStore', { rstore: rstore, filters: [] });
+ var store = Ext.create('PVE.data.DiffStore', { rstore: rstore,
+ sorters: [],
+ filters: []
+ });
if (rows) {
Ext.Object.each(rows, function(key, rowdef) {
--
2.1.4
More information about the pve-devel
mailing list