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:
Simon Buckle
2008-07-31 09:14:44 +00:00
parent 2e86ffb54e
commit 1fc0044d45

View File

@@ -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
{