Skip to content

Commit

Permalink
[#1044] Update date hashes on reset date range (#1068)
Browse files Browse the repository at this point in the history
Resetting the date range would occasionally not change the date 
hashes in the URL, causing a refresh of the page to load the 
outdated filter date range. 

This bug occurs when until or since date is not specified on
generating the report.

Let's make sure that the date hashes gets updated all the time.
  • Loading branch information
ccyccyccy authored Mar 2, 2020
1 parent 893436f commit 43c1898
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/src/static/js/v_summary.js
Original file line number Diff line number Diff line change
Expand Up @@ -628,8 +628,12 @@ window.vSummary = {

// updating filters programically //
resetDateRange() {
this.hasModifiedSinceDate = false;
this.hasModifiedUntilDate = false;
this.tmpFilterSinceDate = '';
this.tmpFilterUntilDate = '';
window.removeHash('since');
window.removeHash('until');
},

updateDateRange(since, until) {
Expand Down

0 comments on commit 43c1898

Please sign in to comment.