partkeepr

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

commit ad70d9ea2769234890401455c0323c23f52206b0
parent b5d203ee1d673519b80ee725d8df9aff51a71fc2
Author: Felicitus <felicitus@felicitus.org>
Date:   Fri,  4 Sep 2015 18:56:53 +0200

Fixed typo in the distributor validator method, made comboboxes return objects by default

Diffstat:
Msrc/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/Editor/PartEditor.js | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/Editor/PartEditor.js b/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/Editor/PartEditor.js @@ -125,6 +125,7 @@ Ext.define('PartKeepr.PartEditor', { fieldLabel: i18n("Category"), name: 'category', displayField: "name", + returnObject: true, store: Ext.create("PartKeepr.data.store.PartCategoryStore"), rootVisible: false }, @@ -315,7 +316,7 @@ Ext.define('PartKeepr.PartEditor', { * that the record is invalid and being removed. */ for (j = 0; j < this.record.distributors().getCount(); j++) { - if (this.record.distributors().getAt(j).getDistribor() === null) { + if (this.record.distributors().getAt(j).getDistributor() === null) { removeRecords.push(this.record.distributors().getAt(j)); } }