details: https://code.openbravo.com/erp/devel/pi/rev/4b0eb0f9376f changeset: 23434:4b0eb0f9376f user: Guillermo Gil <guillermo.gil <at> openbravo.com> date: Mon Jun 02 17:13:04 2014 +0200 summary: Fixed issue 26679:Create new is not selecting correctly the record
Added logic to prevent the selection of a wrong record details: https://code.openbravo.com/erp/devel/pi/rev/7f57d14061b9 changeset: 23435:7f57d14061b9 user: Guillermo Gil <guillermo.gil <at> openbravo.com> date: Tue Jun 03 12:26:30 2014 +0200 summary: Fixed issue 26767:filters not working in Process Definition Removed wrong criterias diffstat: modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js | 17 +++++++-- 1 files changed, 12 insertions(+), 5 deletions(-) diffs (34 lines): diff -r fd19aedba0df -r 7f57d14061b9 modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js --- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js Tue Jun 03 17:03:14 2014 +0200 +++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js Tue Jun 03 12:26:30 2014 +0200 @@ -1584,11 +1584,16 @@ // ui-pattern: single record/edit mode this.view.openDefaultEditView(this.getRecord(startRow)); } else if (this.data && this.data.getLength() === 1) { - // one record select it directly - record = this.getRecord(0); - // this select method prevents state changing if the record - // was already selected - this.doSelectSingleRecord(record); + + // Prevent the selection of an old record + // See issue https://issues.openbravo.com/view.php?id=26679 + if (!this.view.viewForm.isNew) { + // one record select it directly + record = this.getRecord(0); + // this select method prevents state changing if the record + // was already selected + this.doSelectSingleRecord(record); + } // Call to updateButtonState to force a call to the FIC in setsession mode // See issue https://issues.openbravo.com/view.php?id=22655 @@ -1933,6 +1938,8 @@ shouldRemove = true; } } + } else if (criterion.fieldName === this.view.parentProperty + OB.Constants.FIELDSEPARATOR + OB.Constants.IDENTIFIER && criterion.operator === 'iEquals') { + shouldRemove = true; } if (shouldRemove) { ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/NeoTech _______________________________________________ Openbravo-commits mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openbravo-commits
