From 50ab6661c49b0a92c3f23756e4981405ce6f78a7 Mon Sep 17 00:00:00 2001 From: Kevin Roast Date: Mon, 14 Aug 2006 10:56:18 +0000 Subject: [PATCH] . Fix to Alfresco JavaScript to correctly convert back multi-value list properties that have not been modified . Change to use of Wrapper interface when returning Java values from JavaScript . Addition of final 1.4 icons from Linton for Dashboard and User Options screens git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@3492 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../java/org/alfresco/repo/jscript/Node.java | 59 +++++++++++-------- .../repo/jscript/RhinoScriptService.java | 6 +- 2 files changed, 38 insertions(+), 27 deletions(-) diff --git a/source/java/org/alfresco/repo/jscript/Node.java b/source/java/org/alfresco/repo/jscript/Node.java index f9b4824997..7d2f379f56 100644 --- a/source/java/org/alfresco/repo/jscript/Node.java +++ b/source/java/org/alfresco/repo/jscript/Node.java @@ -945,35 +945,46 @@ public final class Node implements Serializable, Scopeable if (value instanceof NativeArray) { - // convert JavaScript array of values to a List of Serializable objects - Object[] propIds = values.getIds(); - List propValues = new ArrayList(propIds.length); - for (int i=0; i propValues = new ArrayList(propIds.length); + for (int i=0; i list = new ArrayList(array.length); + for (int i=0; i