mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
SAIL-10 - Data Lists in Share. Various enhancements and improvements. SAIL-106 - Edit list page. SAIL-109 - Duplicate Row. New ScriptNode API, getTypePropertyNames
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19422 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -124,8 +124,9 @@ public class ScriptFormService extends BaseScopableProcessorExtension
|
||||
* @param itemId The identifier of the item to retrieve a form for
|
||||
* @param postData The post data, this can be a Map of name value
|
||||
* pairs, a webscript FormData object or a JSONObject
|
||||
* @return The persisted object
|
||||
*/
|
||||
public void saveForm(String itemKind, String itemId, Object postData)
|
||||
public Object saveForm(String itemKind, String itemId, Object postData)
|
||||
{
|
||||
// A note on data conversion as passed in to this method:
|
||||
// Each of the 3 submission methods (multipart/formdata, JSON Post and
|
||||
@@ -145,9 +146,9 @@ public class ScriptFormService extends BaseScopableProcessorExtension
|
||||
{
|
||||
logger.debug("ScriptFormService.saveForm: postData not instanceof FormData.");
|
||||
}
|
||||
return;
|
||||
return null;
|
||||
}
|
||||
|
||||
formService.saveForm(new Item(itemKind, itemId), dataForFormService);
|
||||
return formService.saveForm(new Item(itemKind, itemId), dataForFormService);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user