From 6d681f239fff1a18d7b786ee9c26f7de982f6eb8 Mon Sep 17 00:00:00 2001 From: Edward Cant Date: Sat, 26 Sep 2020 19:13:26 +0100 Subject: [PATCH] Update ProjectRunEditor.js Fix https://github.com/partkeepr/PartKeepr/issues/1152 by extracting the project part rather than the raw part. --- .../public/js/Components/ProjectRun/ProjectRunEditor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PartKeepr/FrontendBundle/Resources/public/js/Components/ProjectRun/ProjectRunEditor.js b/src/PartKeepr/FrontendBundle/Resources/public/js/Components/ProjectRun/ProjectRunEditor.js index a389205ed..3270f9c30 100644 --- a/src/PartKeepr/FrontendBundle/Resources/public/js/Components/ProjectRun/ProjectRunEditor.js +++ b/src/PartKeepr/FrontendBundle/Resources/public/js/Components/ProjectRun/ProjectRunEditor.js @@ -99,7 +99,7 @@ Ext.define('PartKeepr.ProjectRunEditor', { */ onEditStart: function () { - var store = this.record.parts(); + var store = this.record.getProject().parts(); this.partGrid.bindStore(store); this.down("#projectName").setValue(this.record.get("project.name"));