details: https://code.openbravo.com/erp/devel/pi/rev/0516aba62fce changeset: 23006:0516aba62fce user: Guillermo Gil <guillermo.gil <at> openbravo.com> date: Fri May 09 13:43:49 2014 +0200 summary: Fixed issue 26307:when user enters ... system completes the condition with ZZZZZZ
diffstat: modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-fk-filter.js | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diffs (14 lines): diff -r 5ef5b7acfcbd -r 0516aba62fce modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-fk-filter.js --- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-fk-filter.js Fri May 09 13:41:51 2014 +0200 +++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-fk-filter.js Fri May 09 13:43:49 2014 +0200 @@ -353,6 +353,10 @@ value = this.buildValueExpressions(criterion); this.setValue(value); } + // if iBetweenInclusive operator is used, delete the ZZZZZZZZZZ + if (this.getValue().toString().indexOf('...') !== -1 && this.getValue().toString().indexOf('ZZZZZZZZZZ') !== -1) { + this.setValue(this.getValue().toString().substring(0, this.getValue().toString().length - 10)); + } }, // make sure that the correct field name is used to filter the main grid ------------------------------------------------------------------------------ Is your legacy SCM system holding you back? Join Perforce May 7 to find out: • 3 signs your SCM is hindering your productivity • Requirements for releasing software faster • Expert tips and advice for migrating your SCM now http://p.sf.net/sfu/perforce _______________________________________________ Openbravo-commits mailing list Openbravo-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbravo-commits