partkeepr

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

commit 4c1760dee5a0473d484c0e70fbacdfdd1bf6edde
parent e782f178ae182365a5ff31fa2246b00398d8efdb
Author: Timo A. Hummel <felicitus@felicitus.org>
Date:   Sun, 15 May 2016 14:52:28 +0200

Merge pull request #668 from partkeepr/PartKeepr-660

Set the stockLevel property to 0 for each duplicated item, fixes #660
Diffstat:
Msrc/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/Editor/PartEditor.js | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

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 @@ -406,6 +406,7 @@ Ext.define('PartKeepr.PartEditor', { newItem.set(data); newItem.setAssociationData(this.record.getAssociationData()); newItem.stockLevels().removeAll(); + newItem.set("stockLevel", 0); this.editItem(newItem); } else {