"Applied fix from trunk for revision: 1820949"

------------------------------------------------------------------------
r1820949 | paulfoxworthy | 2018-01-12 07:50:17 +0100 (ven., 12 janv. 2018) | 8 lines

Fixed: Find Employee Position does not allow "don't care" for boolean fields (OFBIZ-10158)

In the demo app, go to https://demo-stable.ofbiz.apache.org/humanres/control/FindEmplPositions, click on New Employee Position, and toggle one of the four flags, e.g. set Temporary Flag to N.

Now on the Find screen, there is no way to find all employee positions: it insists on a Yes or No for the flags. This patch allows a blank "don't care" option.

Thanks: Larissa Zanoni at Blockfreight for discovering this issue.

------------------------------------------------------------------------


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/branches/release17.12@1820956 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacques Le Roux
2018-01-12 08:41:52 +00:00
parent 99ef3c852d
commit 9bd9312a23
@@ -276,25 +276,25 @@ under the License.
<auto-fields-entity entity-name="EmplPosition" default-field-type="find"/>
<field name="noConditionFind"><hidden value="Y"/><!-- if this isn't there then with all fields empty no query will be done --></field>
<field name="salaryFlag">
<drop-down allow-empty="false" current="selected">
<drop-down allow-empty="true" current="selected">
<option key="Y" description="${uiLabelMap.CommonYes}"/>
<option key="N" description="${uiLabelMap.CommonNo}"/>
</drop-down>
</field>
<field name="exemptFlag">
<drop-down allow-empty="false" current="selected">
<drop-down allow-empty="true" current="selected">
<option key="Y" description="${uiLabelMap.CommonYes}"/>
<option key="N" description="${uiLabelMap.CommonNo}"/>
</drop-down>
</field>
<field name="fulltimeFlag">
<drop-down allow-empty="false" current="selected">
<drop-down allow-empty="true" current="selected">
<option key="Y" description="${uiLabelMap.CommonYes}"/>
<option key="N" description="${uiLabelMap.CommonNo}"/>
</drop-down>
</field>
<field name="temporaryFlag">
<drop-down allow-empty="false" current="selected">
<drop-down allow-empty="true" current="selected">
<option key="Y" description="${uiLabelMap.CommonYes}"/>
<option key="N" description="${uiLabelMap.CommonNo}"/>
</drop-down>