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:50 UTC
[28/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/20e83a13
Tree: http://git-wip-us.apache.org/repos/asf/incubator-unomi/tree/20e83a13
Diff: http://git-wip-us.apache.org/repos/asf/incubator-unomi/diff/20e83a13
Branch: refs/heads/UNOMI-28-ES-2-X-UPGRADE
Commit: 20e83a1355c209cc38f44dead240d9789966b15a
Parents: b311e19
Author: Abdelkader Midani <am...@jahia.com>
Authored: Wed Oct 19 16:35:28 2016 +0200
Committer: Abdelkader Midani <am...@jahia.com>
Committed: Mon Oct 24 16:19:29 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/20e83a13/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) {