partkeepr

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

commit 93aaaf8af9cddfb3770b302b2020a548d408cc02
parent 4a1c99c2a63487d02daf0bb4270b67989f941ca9
Author: Felicitus <felicitus@felicitus.org>
Date:   Thu,  5 Nov 2015 17:39:40 +0100

Use firstChild of the root node, as we are using a virtual root node

Diffstat:
Msrc/PartKeepr/FrontendBundle/Resources/public/js/ExtJS/Enhancements/Ext.ux.TreePicker-setValueWithObject.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PartKeepr/FrontendBundle/Resources/public/js/ExtJS/Enhancements/Ext.ux.TreePicker-setValueWithObject.js b/src/PartKeepr/FrontendBundle/Resources/public/js/ExtJS/Enhancements/Ext.ux.TreePicker-setValueWithObject.js @@ -26,7 +26,7 @@ Ext.define("PartKeepr.ux.TreePicker", { // try to find a record in the store that matches the value record = value ? me.store.getNodeById(value) : me.store.getRoot(); if (value === undefined || value === null) { - record = me.store.getRoot(); + record = me.store.getRoot().firstChild; me.value = record.getId(); } else { if (value.isModel) {