-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 5.5
-
Fix Version/s: 5.7.1
-
Component/s: Automation
-
Backlog priority:300
-
Impact type:Configuration format change
-
Upgrade notes:
For instance,
If we have an expression like
!Document.hasFacet("Folderish")
It will execute the event handler only if the document DOES HAVE the facet folderish
From org.nuxeo.ecm.automation.core.events.EventHandler:250
if (expression != null) { if (expr == null) { expr = Scripting.newExpression(expression); } if ((Boolean) expr.eval(ctx)) { return false; } } return true;
is wrong and should be
if (expression != null) { if (expr == null) { expr = Scripting.newExpression(expression); } if (!(Boolean) expr.eval(ctx)) { return false; } } return true;