mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
First cut of MOB-837 (type support in forms)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14606 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -51,8 +51,13 @@ public class ScriptForm implements Serializable
|
||||
this.form = formObject;
|
||||
|
||||
fieldDefinitionData = new HashMap<String, FieldDefinition>();
|
||||
for (FieldDefinition fd : form.getFieldDefinitions()) {
|
||||
fieldDefinitionData.put(fd.getName(), fd);
|
||||
List<FieldDefinition> fieldDefs = form.getFieldDefinitions();
|
||||
if (fieldDefs != null)
|
||||
{
|
||||
for (FieldDefinition fd : fieldDefs)
|
||||
{
|
||||
fieldDefinitionData.put(fd.getName(), fd);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -51,10 +51,13 @@ public class ScriptFormData implements Serializable
|
||||
public ScriptableHashMap<String, ScriptFieldData> getData()
|
||||
{
|
||||
ScriptableHashMap<String, ScriptFieldData> result = new ScriptableHashMap<String, ScriptFieldData>();
|
||||
for (String k : formData.getData().keySet())
|
||||
if (this.formData != null)
|
||||
{
|
||||
ScriptFieldData wrappedFieldData = new ScriptFieldData(formData.getData().get(k));
|
||||
result.put(k, wrappedFieldData);
|
||||
for (String k : formData.getData().keySet())
|
||||
{
|
||||
ScriptFieldData wrappedFieldData = new ScriptFieldData(formData.getData().get(k));
|
||||
result.put(k, wrappedFieldData);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
Reference in New Issue
Block a user