[ 
https://issues.apache.org/jira/browse/OFBIZ-5867?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14201664#comment-14201664
 ] 

Jacopo Cappellato commented on OFBIZ-5867:
------------------------------------------

I think you are misinterpreting the meaning of the disabled-style attribute: it 
is only used to set a css style for the menu item when the menu item is 
disabled (when the condition is not met).
The menu item will be disabled when the condition is not met and in this case, 
if the disabled-style attribute is set, it will be used to render the field.

> Menu-item with conditon 'disabled-style="disabled" ' doesn't work as presumed
> -----------------------------------------------------------------------------
>
>                 Key: OFBIZ-5867
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5867
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Release Branch 12.04, Release Branch 13.07, Trunk
>            Reporter: Pierre Smits
>
> When menu-items have the following condition:
> {code}
> <condition disabled-style="disabled">
>                 <and>
>                     <not><if-empty field="quote"/></not>
>                     <if-compare operator="equals" value="QUO_APPROVED" 
> field="quote.statusId"/>
>                 </and>
>             </condition>
> {code}
> it is expected that the menu item is disabled when the condition (set) is 
> met. However, it is the opposite. The menu-item is disabled when the 
> condition is not met.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to