mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
ALF-11108: Notification when item is updated, even though 'when' states 'items are created or enter this folder'
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32039 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -315,8 +315,12 @@ public class MailActionExecuter extends ActionExecuterAbstractBase
|
|||||||
{
|
{
|
||||||
@Override
|
@Override
|
||||||
public Void execute() throws Throwable
|
public Void execute() throws Throwable
|
||||||
|
{
|
||||||
|
// Only try and send the email if the actioned upon node reference still exists
|
||||||
|
if (nodeService.exists(actionedUponNodeRef) == true)
|
||||||
{
|
{
|
||||||
prepareAndSendEmail(ruleAction, actionedUponNodeRef);
|
prepareAndSendEmail(ruleAction, actionedUponNodeRef);
|
||||||
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}, false, true);
|
}, false, true);
|
||||||
@@ -324,10 +328,13 @@ public class MailActionExecuter extends ActionExecuterAbstractBase
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
if (nodeService.exists(actionedUponNodeRef) == true)
|
||||||
{
|
{
|
||||||
prepareAndSendEmail(ruleAction, actionedUponNodeRef);
|
prepareAndSendEmail(ruleAction, actionedUponNodeRef);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private boolean sendAfterCommit(Action action)
|
private boolean sendAfterCommit(Action action)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user