UNOMI-59 : Handle update of multivalued property - form mapping
Project: http://git-wip-us.apache.org/repos/asf/incubator-unomi/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-unomi/commit/0f87d095 Tree: http://git-wip-us.apache.org/repos/asf/incubator-unomi/tree/0f87d095 Diff: http://git-wip-us.apache.org/repos/asf/incubator-unomi/diff/0f87d095 Branch: refs/heads/UNOMI-28-ES-2-X-UPGRADE Commit: 0f87d095a4cc444a64d374cc4249ae2105a8ac36 Parents: a0a87f3 Author: Abdelkader Midani <[email protected]> Authored: Wed Oct 19 16:35:28 2016 +0200 Committer: Thomas Draier <[email protected]> Committed: Thu Oct 27 09:45:46 2016 +0200 ---------------------------------------------------------------------- .../unomi/plugins/baseplugin/actions/SetPropertyAction.java | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-unomi/blob/0f87d095/plugins/baseplugin/src/main/java/org/apache/unomi/plugins/baseplugin/actions/SetPropertyAction.java ---------------------------------------------------------------------- diff --git a/plugins/baseplugin/src/main/java/org/apache/unomi/plugins/baseplugin/actions/SetPropertyAction.java b/plugins/baseplugin/src/main/java/org/apache/unomi/plugins/baseplugin/actions/SetPropertyAction.java index a731468..54ce89c 100644 --- a/plugins/baseplugin/src/main/java/org/apache/unomi/plugins/baseplugin/actions/SetPropertyAction.java +++ b/plugins/baseplugin/src/main/java/org/apache/unomi/plugins/baseplugin/actions/SetPropertyAction.java @@ -41,6 +41,9 @@ public class SetPropertyAction implements ActionExecutor { String propertyName = (String) action.getParameterValues().get("setPropertyName"); Object propertyValue = action.getParameterValues().get("setPropertyValue"); + if(propertyValue == null) { + propertyValue = action.getParameterValues().get("setPropertyValueMultiple"); + } Object propertyValueInteger = action.getParameterValues().get("setPropertyValueInteger"); if(propertyValueInteger != null && propertyValue == null) {
