Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0032478Openbravo ERPA. Platformpublic2016-03-15 10:272016-03-18 08:28
caristu 
caristu 
immediateminoralways
closedfixed 
5
 
3.0PR15Q4.53.0PR15Q4.5 
alostale
Core
Production - Confirmed Stable
2015-12-16
3.0PR15Q3
https://code.openbravo.com/erp/devel/pi/rev/17016914f029b502a391792438ec40750d2b95cd [^]
No
0032478: '[object Object]' instead of blank value after clearing value in selector
'[object Object]' instead of blank value appears after clearing value in selector
1- Log in ERP as F&B International Group Admin.
2- Go to Financial Account window and select 'Bank - Account 1'.
3- Go to Transaction subtab and insert a new row in grid.
4- Click in magnifying glass button to add a Payment. A Payment popup is shown and Financial Account filter has the following value: 'Bank - Account 1 - USD'.
5- Clear all filters and realize that Payment Date filter has the following value: '[object Object]' instead of blank value.
In ob-formitem-minidaterange.js, in function hasAdvancedCriteria() return always true.
    
No tags attached.
blocks defect 0032474 closed caristu '[object Object]' instead of blank value after clearing value in selector 
Issue History
2016-03-15 11:10caristuTypedefect => backport
2016-03-15 11:10caristuTarget Version => 3.0PR15Q4.5
2016-03-16 12:28hgbotCheckin
2016-03-16 12:28hgbotNote Added: 0085005
2016-03-16 12:28hgbotStatusscheduled => resolved
2016-03-16 12:28hgbotResolutionopen => fixed
2016-03-16 12:28hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR15Q4.5/rev/d6a7ec729aa86b7fe2c8e29d663e4e8086177f77 [^]
2016-03-16 12:28caristuReview Assigned To => alostale
2016-03-16 12:28caristuIssue Monitored: alostale
2016-03-18 07:55alostaleNote Added: 0085217
2016-03-18 07:55alostaleStatusresolved => closed
2016-03-18 07:55alostaleFixed in Version => 3.0PR15Q4.5
2016-03-18 08:28alostaleAssigned Toplatform => caristu

Notes
(0085005)
hgbot   
2016-03-16 12:28   
Repository: erp/backports/3.0PR15Q4.5
Changeset: d6a7ec729aa86b7fe2c8e29d663e4e8086177f77
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Tue Mar 15 19:22:47 2016 +0100
URL: http://code.openbravo.com/erp/backports/3.0PR15Q4.5/rev/d6a7ec729aa86b7fe2c8e29d663e4e8086177f77 [^]

fixes issue 32478: [object Object] appears after clearing value in selector

Having singleDateMode as false after clearing the filter content of the date causes the return of an empty object in the getValuesAsCriteria method of the grid. The this.singleDateMode was being set to true in clearFilterValues function, but this statement was deleted to solve issue 31705, because it was preventing to show the range dialog after clearing the filters, when pressing the Enter key.

To solve both problems the change regarding setting singleDateMode in clearFilterValues has been reverted, and in order to ensure that the range dialog is displayed when it should be, a new check has been included in the keyPress method.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-minidaterange.js
---
(0085217)
alostale   
2016-03-18 07:55   
code reviewed

tested also all related issues:

* 31705
* 29554
* 29661