[ 
https://jira.nuxeo.com/browse/NXP-7287?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Anahide Tchertchian updated NXP-7287:
-------------------------------------

    Summary: Fix merge of filter contributions when original filter was 
contributed inside an action  (was: Filters contribution are not correctly 
merged when appending to a filter contributed inside an action)

> 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

Reply via email to