partkeepr

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

commit 019d1b584500a39782b53c08885799340f1366d0
parent 03f863ec9606b961deb97c7b67ce0830525f22d5
Author: Felicitus <felicitus@felicitus.org>
Date:   Mon, 21 Sep 2015 15:07:52 +0200

Fixed add part / duplicate part methods

Diffstat:
Msrc/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/PartsManager.js | 7++-----
1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/PartsManager.js b/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/PartsManager.js @@ -262,8 +262,6 @@ Ext.define('PartKeepr.PartManager', { createPartDuplicate: function (rec) { var copy = rec.copy(); - Ext.data.Model.id(copy); - copy.set("id", null); var j = Ext.create("PartKeepr.PartEditorWindow", { partMode: 'create' @@ -333,7 +331,7 @@ Ext.define('PartKeepr.PartManager', { defaults.partUnit = defaultPartUnit.getId(); defaults.category = this.grid.currentCategory; - record = Ext.create("PartKeepr.Part", defaults); + record = Ext.create("PartKeepr.PartBundle.Entity.Part", defaults); // Inject the defaults to the editor, so the editor can create a new item on its own j.editor.partDefaults = defaults; @@ -448,4 +446,4 @@ Ext.define('PartKeepr.PartManager', { { return this.store; } -});- \ No newline at end of file +});