mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
- Refactored FormData class to remove unecessary API layer and fixed up fallout
- Renamed 'definition' webscript to 'formdefiniton' (no change to URL) - Simplified and improved formdefinition webscript JS/FTL git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14698 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -53,10 +53,10 @@ public class ScriptFormData implements Serializable
|
||||
ScriptableHashMap<String, ScriptFieldData> result = new ScriptableHashMap<String, ScriptFieldData>();
|
||||
if (this.formData != null)
|
||||
{
|
||||
for (String k : formData.getData().keySet())
|
||||
for (FieldData fieldData : formData)
|
||||
{
|
||||
ScriptFieldData wrappedFieldData = new ScriptFieldData(formData.getData().get(k));
|
||||
result.put(k, wrappedFieldData);
|
||||
ScriptFieldData wrappedFieldData = new ScriptFieldData(fieldData);
|
||||
result.put(fieldData.getName(), wrappedFieldData);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
|
Reference in New Issue
Block a user