details: https://code.openbravo.com/erp/devel/pi/rev/d8fa17782605 changeset: 25872:d8fa17782605 user: Augusto Mauch <augusto.mauch <at> openbravo.com> date: Thu Feb 05 13:21:49 2015 +0100 summary: Fixes bug 28872: Tree item popup is loaded properly when using a partial filter
The problem was that if a partial filter was entered in the tree item (as opposed to a tree item value selected), when the popup was opened that partial filter was being used to filter the nodes by their id. Now before creating that criteria it is checked that the value entered in the tree item actually is the id of a selected item. diffstat: modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-tree.js | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diffs (13 lines): diff -r 3ae59cee1ac2 -r d8fa17782605 modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-tree.js --- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-tree.js Thu Feb 05 12:33:34 2015 +0100 +++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-tree.js Thu Feb 05 13:21:49 2015 +0100 @@ -114,7 +114,8 @@ criteria, innerCriteria; if (this.treeWindow.treeGrid) { //If there is a record selected in the item, use it to filter the tree - if (OB.Utilities.isUUID(selectedValue)) { + // check if the value is present in the value map to ensure it is the id of the selected item + if (OB.Utilities.isUUID(selectedValue) && this.valueMap && this.valueMap[selectedValue]) { this.targetRecordId = selectedValue; this.targetRecordIdentifier = this.getDisplayValue(); } ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Openbravo-commits mailing list Openbravo-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbravo-commits