mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Merged V2.9 to HEAD
9241: Merged V2.2 to V2.9 9119: Merged V2.1 to V2.2 8671: Fix for AR-2221 - JavaScript scriptable Map objects recursively converted to Freemarker accessable maps 9256: Merged V2.2 to V2.9 9100: Merged V2.1 to V2.2 8728 <Not required>: Latest AMP changes for AR-2212 8731: Faster content store cleaner 8738: Fix for AWC 1930 - support simple bind when building DNs that contain a comma 8835: Fix regression issue as discussed in ACT 2019 8861: Fix WCM-1158 8866: Fixed AR-2272: Module Management Tool distribution is broken 8872: Fixed distribution of benchmark executable jar after EHCache upgrade 8933: Fix for ACT-2469 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9260 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -152,11 +152,11 @@ public class ValueConverter
|
||||
// recursively call this method to convert the unwrapped value
|
||||
value = convertValueForRepo((Serializable)((Wrapper)value).unwrap());
|
||||
}
|
||||
else if (value instanceof ScriptableObject)
|
||||
else if (value instanceof Scriptable)
|
||||
{
|
||||
// a scriptable object will probably indicate a multi-value property
|
||||
// set using a JavaScript Array object
|
||||
ScriptableObject values = (ScriptableObject)value;
|
||||
Scriptable values = (Scriptable)value;
|
||||
|
||||
if (value instanceof IdScriptableObject)
|
||||
{
|
||||
@@ -230,14 +230,14 @@ public class ValueConverter
|
||||
}
|
||||
else
|
||||
{
|
||||
// convert JavaScript map to values to a Map of Serializable objects
|
||||
// convert Scriptable object of values to a Map of Serializable objects
|
||||
Object[] propIds = values.getIds();
|
||||
Map<String, Serializable> propValues = new HashMap<String, Serializable>(propIds.length);
|
||||
for (int i=0; i<propIds.length; i++)
|
||||
{
|
||||
// work on each key in turn
|
||||
Object propId = propIds[i];
|
||||
|
||||
|
||||
// we are only interested in keys that indicate a list of values
|
||||
if (propId instanceof String)
|
||||
{
|
||||
|
Reference in New Issue
Block a user