partkeepr

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

commit c670e0e3825eaf30af128b8dc1b5faf007953d65
parent 576e09196b6f689b57ae51cff8018a1c7cb81494
Author: Felicia Hummel <felicia@partkeepr.com>
Date:   Fri, 27 Jan 2017 12:43:14 +0100

Reworked settings to comply with the reworked field return values

Diffstat:
Msrc/PartKeepr/FrontendBundle/Resources/public/js/Components/SystemPreferences/Preferences/FulltextSearch.js | 2+-
Msrc/PartKeepr/FrontendBundle/Resources/public/js/Components/SystemPreferences/Preferences/RequiredPartDistributorFields.js | 2+-
Msrc/PartKeepr/FrontendBundle/Resources/public/js/Components/SystemPreferences/Preferences/RequiredPartFields.js | 2+-
Msrc/PartKeepr/FrontendBundle/Resources/public/js/Components/SystemPreferences/Preferences/RequiredPartManufacturerFields.js | 2+-
4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/PartKeepr/FrontendBundle/Resources/public/js/Components/SystemPreferences/Preferences/FulltextSearch.js b/src/PartKeepr/FrontendBundle/Resources/public/js/Components/SystemPreferences/Preferences/FulltextSearch.js @@ -64,7 +64,7 @@ Ext.define('PartKeepr.Components.SystemPreferences.Preferences.FulltextSearch', var fields = []; for (var i = 0; i < selection.length; i++) { - fields.push(selection[i].data.data); + fields.push(selection[i].data.data.name); } PartKeepr.getApplication().setSystemPreference("partkeepr.part.search.fields", fields); diff --git a/src/PartKeepr/FrontendBundle/Resources/public/js/Components/SystemPreferences/Preferences/RequiredPartDistributorFields.js b/src/PartKeepr/FrontendBundle/Resources/public/js/Components/SystemPreferences/Preferences/RequiredPartDistributorFields.js @@ -38,7 +38,7 @@ Ext.define('PartKeepr.Components.SystemPreferences.Preferences.RequiredPartDistr var fields = []; for (var i = 0; i < selection.length; i++) { - fields.push(selection[i].data.data); + fields.push(selection[i].data.data.name); } PartKeepr.getApplication().setSystemPreference("partkeepr.partDistributor.requiredFields", fields); diff --git a/src/PartKeepr/FrontendBundle/Resources/public/js/Components/SystemPreferences/Preferences/RequiredPartFields.js b/src/PartKeepr/FrontendBundle/Resources/public/js/Components/SystemPreferences/Preferences/RequiredPartFields.js @@ -78,7 +78,7 @@ Ext.define('PartKeepr.Components.SystemPreferences.Preferences.RequiredPartField var fields = []; for (var i = 0; i < selection.length; i++) { - fields.push(selection[i].data.data); + fields.push(selection[i].data.data.name); } PartKeepr.getApplication().setSystemPreference("partkeepr.part.requiredFields", fields); diff --git a/src/PartKeepr/FrontendBundle/Resources/public/js/Components/SystemPreferences/Preferences/RequiredPartManufacturerFields.js b/src/PartKeepr/FrontendBundle/Resources/public/js/Components/SystemPreferences/Preferences/RequiredPartManufacturerFields.js @@ -38,7 +38,7 @@ Ext.define('PartKeepr.Components.SystemPreferences.Preferences.RequiredPartManuf var fields = []; for (var i = 0; i < selection.length; i++) { - fields.push(selection[i].data.data); + fields.push(selection[i].data.data.name); } PartKeepr.getApplication().setSystemPreference("partkeepr.partManufacturer.requiredFields", fields);