[ https://jira.nuxeo.com/browse/NXP-8630?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Anahide Tchertchian moved NXS-895 to NXP-8630: ---------------------------------------------- Fix Version/s: (was: 2.5.1) (was: Short term backlog) 5.5 Roadmap priority: (was: 400) Affects Version/s: (was: 2.5) 5.6 Key: NXP-8630 (was: NXS-895) Project: Nuxeo Enterprise Platform (was: Nuxeo Studio) > Event handlers with EL is not well evaluated: opposite value is returned > ------------------------------------------------------------------------ > > Key: NXP-8630 > URL: https://jira.nuxeo.com/browse/NXP-8630 > Project: Nuxeo Enterprise Platform > Issue Type: Bug > Affects Versions: 5.6 > Reporter: Sun Tan > Assignee: Bogdan Stefanescu > Priority: Major > Fix For: 5.5 > > > For instance, > If we have an expression like > {code} > !Document.hasFacet("Folderish") > {code} > It will execute the event handler only if the document DOES HAVE the facet > folderish > From org.nuxeo.ecm.automation.core.events.EventHandler:250 > {code} > if (expression != null) { > if (expr == null) { > expr = Scripting.newExpression(expression); > } > if ((Boolean) expr.eval(ctx)) { > return false; > } > } > return true; > {code} > is wrong and should be > {code} > if (expression != null) { > if (expr == null) { > expr = Scripting.newExpression(expression); > } > if (!(Boolean) expr.eval(ctx)) { > return false; > } > } > return true; > {code} -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira _______________________________________________ ECM-tickets mailing list ECM-tickets@lists.nuxeo.com http://lists.nuxeo.com/mailman/listinfo/ecm-tickets