Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0029554Openbravo ERPB. User interfacepublic2015-04-09 17:202015-12-17 17:49
caristu 
caristu 
highmajoralways
closedfixed 
5
 
3.0PR15Q33.0PR15Q3 
alostale
Core
No
0029554: Date filters are not cleared when switching between saved views
Date filters are not cleared when switching between saved views. This can be confusing for the user.
1) Go to the Purchase Order window
2) Remove the implicit filter and add a filter in the order date field, for example: From 09-04-2013
3) Save the view
4) Switch to the standard view, notice that the filter for the standard view has been applied properly, but the date in the order date filter has not been cleared. (See attached)
No tags attached.
related to defect 0029661 closed caristu Dates are not cleared properly when switching between saved views that contains a filter on the same date field 
causes defect 0031705 closed caristu a date used to filter on a grid dissapears after enter it 
png dateFilterNotCleared.png (38,492) 2015-04-09 17:43
https://issues.openbravo.com/file_download.php?file_id=7974&type=bug
png
Issue History
2015-04-09 17:20caristuNew Issue
2015-04-09 17:20caristuAssigned To => platform
2015-04-09 17:20caristuModules => Core
2015-04-09 17:20caristuTriggers an Emergency Pack => No
2015-04-09 17:20caristuIssue Monitored: networkb
2015-04-09 17:39caristuResolution time => 1430949600
2015-04-09 17:43caristuFile Added: dateFilterNotCleared.png
2015-04-09 17:43caristuFile Deleted: dateFilterNotCleared.png
2015-04-09 17:43caristuFile Added: dateFilterNotCleared.png
2015-04-09 17:44caristuSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=8219#r8219
2015-04-16 08:31alostaleStatusnew => acknowledged
2015-04-20 09:15alostaleStatusacknowledged => scheduled
2015-04-20 09:15alostaleAssigned Toplatform => caristu
2015-04-22 08:49caristuRelationship addedrelated to 0029661
2015-04-22 10:41caristuReview Assigned To => alostale
2015-04-22 10:41caristuIssue Monitored: alostale
2015-04-22 10:47hgbotCheckin
2015-04-22 10:47hgbotNote Added: 0076684
2015-04-22 10:47hgbotStatusscheduled => resolved
2015-04-22 10:47hgbotResolutionopen => fixed
2015-04-22 10:47hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/b1614f4301585bb0f8affbf5cf53f451dd284851 [^]
2015-04-24 14:10alostaleNote Added: 0076754
2015-04-24 14:10alostaleStatusresolved => closed
2015-04-24 14:10alostaleFixed in Version => 3.0PR15Q3
2015-05-07 22:16hudsonbotCheckin
2015-05-07 22:16hudsonbotNote Added: 0077141
2015-12-15 14:00alostaleRelationship addedcauses 0031705
2015-12-15 19:00hgbotCheckin
2015-12-15 19:00hgbotNote Added: 0082783
2015-12-16 10:13hgbotCheckin
2015-12-16 10:13hgbotNote Added: 0082796
2015-12-16 11:07caristuNote Deleted: 0082796
2015-12-16 18:18hgbotCheckin
2015-12-16 18:18hgbotNote Added: 0082807
2015-12-16 18:28caristuNote Deleted: 0082807
2015-12-16 18:29caristuNote Deleted: 0082783
2015-12-17 17:49hudsonbotCheckin
2015-12-17 17:49hudsonbotNote Added: 0082845

Notes
(0076684)
hgbot   
2015-04-22 10:47   
Repository: erp/devel/pi
Changeset: b1614f4301585bb0f8affbf5cf53f451dd284851
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Wed Apr 22 10:46:09 2015 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/b1614f4301585bb0f8affbf5cf53f451dd284851 [^]

fixes issue 29554: Date filters not cleared when switching between saved views

The problem was that the clearValue() method of FormItem is not enough to clear the contents of the filter.
To solve it the clearValue method of OBMiniDateRangeItem has been overriden.
Also, it was necessary to call setValue() inside the displayValue() method, to set the value of the object and avoid the clearing of the dates in the filter when smartclient invokes the setItemValues() method of the form.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-minidaterange.js
---
(0076754)
alostale   
2015-04-24 14:10   
code reviewed

Tested by switching from:
- saved view to standard
- standard to saved
- setting a default view different than standard
(0077141)
hudsonbot   
2015-05-07 22:16   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/a1817f84bd8b [^]
Maturity status: Test
(0082845)
hudsonbot   
2015-12-17 17:49   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/7bb1cbcee3ce [^]
Maturity status: Test