[ https://jira.nuxeo.com/browse/NXP-7287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=106511#comment-106511 ]
Anahide Tchertchian edited comment on NXP-7287 at 11/24/11 7:20 PM: -------------------------------------------------------------------- http://hg.nuxeo.org/nuxeo/nuxeo-services/rev/dcc9a79a1136 http://hg.nuxeo.org/nuxeo/nuxeo-services/rev/f6fb383fe3b9 was (Author: atchertchian): http://hg.nuxeo.org/nuxeo/nuxeo-services/rev/dcc9a79a1136 > Fix merge of filter contributions when original filter was contributed inside > an action > --------------------------------------------------------------------------------------- > > Key: NXP-7287 > URL: https://jira.nuxeo.com/browse/NXP-7287 > Project: Nuxeo Enterprise Platform > Issue Type: Bug > Affects Versions: 5.4.2 > Reporter: Thomas Roger > Assignee: Anahide Tchertchian > Fix For: 5.5 > > > When using the following contributions, the two {{view_preview}} filters are > not merged. > There are two {{ActionFilterRegistry}}s used, one in > {{ActionContributionHandler}} for the embedded filter, and one in > {{FilterContributionHandler}} for the filters contributed to the {{filters}} > extension point. > The {{FilterContributionHandler}} does not know about the > {{ActionFilterRegistry}} defined {{ActionContributionHandler}} and so the > {{FilterContributionHandler}} does not merge the {{view_preview}} filter as > there is no other {{view_preview}} filter defined in its registry. > {code} > <action id="TAB_PREVIEW" link="/incl/tabs/preview_tab.xhtml" > enabled="true" order="200" label="label.document.preview" > icon="/icons/file.gif"> > <category>VIEW_ACTION_LIST</category> > <filter id="view_preview"> > <rule grant="true"> > <condition>#{previewActions.hasPreview}</condition> > </rule> > </filter> > </action> > {code} > {code} > <filter id="view_preview" append="true"> > <rule grant="false"> > <type>Survey</type> > </rule> > </filter> > {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