Override filter in send email action

I m trying to override the send email action so that it appears on folderish documents.

I thought this would do the trick, mergeing the folder and not_folder filters

<require>org.nuxeo.ecm.platform.actions</require>
<extension target="org.nuxeo.ecm.platform.actions.ActionService" point="actions">
  <action  icon="/icons/mail.gif" id="sendEmail" label="action.email.document" link="send_email" order="17" >
  <category>DOCUMENT_UPPER_ACTION</category> 
  <filter-id>folder</filter-id> 
</action>

but it does not !

0 votes

1 answers

884 views

ANSWER



This does not work either :

<action id="sendEmail"  enabled="false"  />

<action  icon="/icons/mail.gif" id="sendEmailAnyDoc" label="action.email.document" link="send_email" order="17" >
  <category>DOCUMENT_UPPER_ACTION</category> 
<filter id="sendEmailAnyDocFilter">
  <rule grant="true">
    <permission>Read</permission>
  </rule>
</filter> 
</action>

Another email link appears on folders ( a second link appears on files : the original action is not disabled), and there s a problem with the form that leads to :

could not acquire lock on @Synchronized component: principalListManager 

But the override of the POPUP_sendEmail action is working fine

<action id="POPUP_sendEmail2" link="javascript:doSendEmail"  label="action.email.document" icon="/icons/mail.gif"  >
  <category>POPUP</category> 
<filter id="sendEmailAnyDocFilter2">
  <rule grant="true">
    <facet>Folderish</facet>
  </rule>
</filter> 
</action>
0 votes