/[Apache-SVN]
ViewVC logotype

Revision 1042396


Jump to revision: Previous Next
Author: jleroux
Date: Sun Dec 5 18:43:44 2010 UTC (13 years, 4 months ago)
Changed paths: 1
Log Message:
A patch from Anne Jessel "Is Empty for text-find widget broken" (https://issues.apache.org/jira/browse/OFBIZ-4025) - OFBIZ-4025

To reproduce:
    * go to Facility, Inventory Items tab (or any form that uses text-find widget)
    * choose "Is Empty" from drop-down next to Product Id
    * click Find button

Expected behaviour: no matching items listed, as all items have a Product Id.
Observed behaviour: all items match.

Problem is caused by find code assuming that there is no entity condition to be created if the text field is empty, but of course Is Empty is
different to the other operators in that the text field is expected to be empty.

The attached patch adds a special check for the Is Empty operator.


Changed paths

Path Details
Directoryofbiz/trunk/framework/common/src/org/ofbiz/common/FindServices.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26