diff --git a/README.md b/README.md index ad862201a..397b7a04d 100644 --- a/README.md +++ b/README.md @@ -90,6 +90,7 @@ The icons may not be reused in other projects without the proper flaticon licens --> ## Changelog ### **WORK IN PROGRESS** +* (foxriver76) fixed problem with saving array values in custom config * (foxriver76) fixed issue on deleting admin * (foxriver76) make UI update of controller and admin more verbose diff --git a/packages/admin/src/src/components/Object/ObjectCustomEditor.tsx b/packages/admin/src/src/components/Object/ObjectCustomEditor.tsx index 00b9b0e26..8e4f0a62d 100644 --- a/packages/admin/src/src/components/Object/ObjectCustomEditor.tsx +++ b/packages/admin/src/src/components/Object/ObjectCustomEditor.tsx @@ -710,15 +710,19 @@ class ObjectCustomEditor extends Component 1; + obj.common.custom[instance].enabled = true; Object.keys(newValues).forEach(attr => { // if not different if (!attr.startsWith('_')) { // if we have an array, it is still the data of multiple different fields (multiEdit) do not override issue#2359 - if (!Array.isArray(newValues[attr])) { - obj.common.custom[instance][attr] = newValues[attr]; + if (Array.isArray(newValues[attr]) && isMultiEdit) { + return; } + + obj.common.custom[instance][attr] = newValues[attr]; } }); }