partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit 59ae82b5cdef9c8516e4dba2777aa6a0010547a2
parent 955d1e633fa185f80130d0b071fd024196f7d120
Author: Felicitus <felicitus@felicitus.org>
Date:   Thu,  5 Nov 2015 17:25:13 +0100

Workaround for large installations, relates to #473

Diffstat:
Msrc/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/PartsManager.js | 10+++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/PartsManager.js b/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/PartsManager.js @@ -176,7 +176,14 @@ Ext.define('PartKeepr.PartManager', { value: this.getChildrenIds(record) }); - this.store.addFilter(filter); + if (record.parentNode.isRoot()) { + // Workaround for big installations: Passing all child categories for the root node + // to the filter exceeds the HTTP URI length. See + // https://github.com/partkeepr/PartKeepr/issues/473 + this.store.removeFilter(filter); + } else { + this.store.addFilter(filter); + } }, getSelectedCategory: function () { @@ -272,6 +279,7 @@ Ext.define('PartKeepr.PartManager', { copy.setCategory(rec.getCategory()); copy.setFootprint(rec.getFootprint()); copy.setStorageLocation(rec.getStorageLocation()); + copy.setPartUnit(rec.getPartUnit()); var j = Ext.create("PartKeepr.PartEditorWindow", { partMode: 'create'