partkeepr

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

commit b91f015daa4b5261a818a2ddef14890d5ef32616
parent e16c50750c9909ea23a2406e60f8c915d4303eaa
Author: Felicitus <felicitus@felicitus.org>
Date:   Sun, 25 Mar 2012 03:55:43 +0200

Fixed invalid bugfix for issue #143 (what was I thinking?)...

Diffstat:
Msrc/frontend/js/Components/Part/Editor/PartEditor.js | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/frontend/js/Components/Part/Editor/PartEditor.js b/src/frontend/js/Components/Part/Editor/PartEditor.js @@ -224,7 +224,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).get("id") === 0) { + if (this.record.distributors().getAt(j).get("distributor_id") === 0) { removeRecords.push(this.record.distributors().getAt(j)); } } @@ -242,7 +242,7 @@ Ext.define('PartKeepr.PartEditor', { */ for (j=0;j<this.record.parameters().getCount();j++) { - if (this.record.parameters().getAt(j).get("id") === 0) { + if (this.record.parameters().getAt(j).get("unit_id") === 0) { removeRecords.push(this.record.parameters().getAt(j)); } } @@ -260,7 +260,7 @@ Ext.define('PartKeepr.PartEditor', { */ for (j=0;j<this.record.manufacturers().getCount();j++) { - if (this.record.manufacturers().getAt(j).get("id") === 0) { + if (this.record.manufacturers().getAt(j).get("manufacturer_id") === 0) { removeRecords.push(this.record.manufacturers().getAt(j)); } }