ALF-11108: Notification when item is updated, even though 'when' states 'items are created or enter this folder'

* rules not fired on checked out node during version update



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31842 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Roy Wetherall
2011-11-08 13:45:30 +00:00
parent 4718c76929
commit 42e2c595b9

View File

@@ -2251,8 +2251,16 @@ public class ScriptNode implements Scopeable, NamespacePrefixResolverProvider
public ScriptNode checkoutForUpload() public ScriptNode checkoutForUpload()
{ {
AlfrescoTransactionSupport.bindResource("checkoutforupload", Boolean.TRUE.toString()); AlfrescoTransactionSupport.bindResource("checkoutforupload", Boolean.TRUE.toString());
services.getRuleService().disableRules();
try
{
return checkout(); return checkout();
} }
finally
{
services.getRuleService().enableRules();
}
}
/** /**
* Perform a check-out of this document into the specified destination space. * Perform a check-out of this document into the specified destination space.