[
https://issues.apache.org/jira/browse/OFBIZ-5867?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pranay Pandey updated OFBIZ-5867:
---------------------------------
Description:
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.
was:
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.
> 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
> Assignee: Pranay Pandey
>
> 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)