mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Modified event update so edited tags are applied properly.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10160 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -82,6 +82,20 @@ function main()
|
||||
event.properties[ propsmap[prop] ] = value;
|
||||
}
|
||||
}
|
||||
|
||||
if (!json.isNull("tags"))
|
||||
{
|
||||
var tags = String(json.get("tags")); // space delimited string
|
||||
if (tags !== "")
|
||||
{
|
||||
var tagsArray = tags.split(" ");
|
||||
event.tags = tagsArray;
|
||||
}
|
||||
else
|
||||
{
|
||||
event.tags = []; // reset
|
||||
}
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
|
Reference in New Issue
Block a user