Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0031722Openbravo ERPA. Platformpublic2015-12-14 18:282015-12-17 15:58
egoitz 
caristu 
immediateminoralways
closedfixed 
5
 
3.0PR15Q3.53.0PR15Q3.5 
alostale
Core
Production - Confirmed Stable
2015-04-22
3.0PR15Q3
https://code.openbravo.com/erp/devel/pi/rev/b1614f4301585bb0f8affbf5cf53f451dd284851 [^]
No
0031722: a date used to filter on a grid dissapears after enter it
When you write a date on the filter of a grid, after loss the focus, the value entered is removed, but the filter works properly
-Go to sales order window with date 14-12-2015
-Remove all the filter on grid view
-Filter on the order date field by writing.
1412
-Then press tab key to change to next column
*The value entered is removed but the filter works properly
No tags attached.
blocks defect 0031705 closed caristu a date used to filter on a grid dissapears after enter it 
Issue History
2015-12-15 13:59alostaleTypedefect => backport
2015-12-15 13:59alostaleTarget Version => 3.0PR15Q3.6
2015-12-16 09:20caristuTarget Version3.0PR15Q3.6 => 3.0PR15Q3.5
2015-12-16 10:12caristuReview Assigned To => alostale
2015-12-16 10:12caristuIssue Monitored: alostale
2015-12-16 10:13hgbotCheckin
2015-12-16 10:13hgbotNote Added: 0082797
2015-12-16 10:13hgbotStatusscheduled => resolved
2015-12-16 10:13hgbotResolutionopen => fixed
2015-12-16 10:13hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR15Q3.5/rev/d77b82650d50876755e4d343176d8ba230b73bed [^]
2015-12-17 08:31alostaleNote Added: 0082811
2015-12-17 08:31alostaleStatusresolved => closed
2015-12-17 08:31alostaleFixed in Version => 3.0PR15Q3.5
2015-12-17 15:58caristuNote Added: 0082834
2015-12-17 16:00caristuNote Deleted: 0082834

Notes
(0082797)
hgbot   
2015-12-16 10:13   
Repository: erp/backports/3.0PR15Q3.5
Changeset: d77b82650d50876755e4d343176d8ba230b73bed
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Wed Dec 16 10:12:11 2015 +0100
URL: http://code.openbravo.com/erp/backports/3.0PR15Q3.5/rev/d77b82650d50876755e4d343176d8ba230b73bed [^]

fixes issue 31722: a date used to filter on a grid dissapears after enter it

After solving issue 29554 the values of the date filters are completely removed when invoking the clearValue() method. For this reason, in order to prevent the clearing of the date filter it is necessary to call setValue().

This was already controlled when choosing the dates from the date pickers, but not after entering the date with the tab or enter keys or when using the 'Use as Filter' menu option.

Now this cases are controlled also, by calling setValue() on the setSingleDateValue() method.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-minidaterange.js
---
(0082811)
alostale   
2015-12-17 08:31   
code reviewed

Tested:

 1. Adding date filter by typing (as described in this issue)
 2. Adding date filter by right click in date field to "Use as filter" (as described in 0031713)
 3. Using date filters in saved views (see 0029554)
 4. Getting direct link for a grid filtered by date with set by all the 3 ways defined above