commit 05db7486b99d155384fc225affa3a4ca2e74171a parent a9c8370fb8742ae577ef95cbf50c9b45749854fc Author: Felicia Hummel <felicia@partkeepr.com> Date: Wed, 1 Feb 2017 14:02:59 +0100 Fixes a bug where both "string" and "numeric" were checked at the same time Diffstat:
3 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/src/PartKeepr/FrontendBundle/Resources/public/js/Components/OctoPart/DataApplicator.js b/src/PartKeepr/FrontendBundle/Resources/public/js/Components/OctoPart/DataApplicator.js @@ -188,8 +188,6 @@ Ext.define("PartKeepr.Components.OctoPart.DataApplicator", { found = false; - console.log(filename); - for (k = 0; k < this.part.attachments().count(); k++) { if (this.part.attachments().getAt(k).get("originalFilename") == filename) { found = true; diff --git a/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/Editor/PartParameterGrid.js b/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/Editor/PartParameterGrid.js @@ -153,7 +153,9 @@ Ext.define('PartKeepr.PartParameterGrid', { }, onAddClick: function () { - var rec = Ext.create("PartKeepr.PartBundle.Entity.PartParameter"); + var rec = Ext.create("PartKeepr.PartBundle.Entity.PartParameter", { + valueType: "numeric" + }); this.store.insert(0, rec); diff --git a/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/Editor/PartParameterValueEditor.js b/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/Editor/PartParameterValueEditor.js @@ -34,8 +34,7 @@ Ext.define("PartKeepr.PartParameterValueEditor", { items: [ { boxLabel: i18n("Numeric"), - inputValue: "numeric", - checked: true + inputValue: "numeric" }, { boxLabel: i18n("Text"), inputValue: "string"