partkeepr

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

commit f0125e9b8a1cd4e0cff3cde36c33b45bd169e95e
parent 9b3ca25c77a1e2ddd63b3f80f1013a7f62ea3699
Author: Felicia Hummel <felicia@partkeepr.com>
Date:   Mon, 30 Jan 2017 17:19:50 +0100

Fixed a bug where a recursion would happen within the FieldSelector

Diffstat:
Msrc/PartKeepr/FrontendBundle/Resources/public/js/Components/Widgets/FieldSelector.js | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Widgets/FieldSelector.js b/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Widgets/FieldSelector.js @@ -74,7 +74,7 @@ Ext.define('PartKeepr.Components.Widgets.FieldSelector', { continue; } - if (fields[i]["$reference"] === undefined) { + if (fields[i]["reference"] === null) { checked = false; if (Ext.Array.contains(this.initiallyChecked, prefix + fields[i].name)) { @@ -138,7 +138,7 @@ Ext.define('PartKeepr.Components.Widgets.FieldSelector', { associationAlreadyProcessed = false; if (typeof(associations[i].storeName) !== "undefined" && associations[i].isMany === true) { for (j = 0; j < this.visitedModels.length; j++) { - if (this.visitedModels[j] === associations[i].model) { + if (this.visitedModels[j] === associations[i].type) { associationAlreadyProcessed = true; } }