You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by sh...@apache.org on 2016/11/14 16:25:54 UTC
[32/38] incubator-unomi git commit: UNOMI-59 : Handle update of
multivalued property - form mapping
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 <am...@jahia.com>
Authored: Wed Oct 19 16:35:28 2016 +0200
Committer: Thomas Draier <dr...@apache.org>
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) {