Filters contribution are not correctly merged when appending to a filter 
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
             Fix For: 5.4.3


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
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to