#521-redux fix wifi date search

This commit is contained in:
Oliver Gorwits
2019-03-06 18:42:47 +00:00
parent 48857ae300
commit e3af64df77
2 changed files with 9 additions and 6 deletions

View File

@@ -1,3 +1,9 @@
2.040007 - 2019-03-06
[BUG FIXES]
* #521-redux Search Node Date Range not working (ollyg)
2.040006 - 2019-03-04 2.040006 - 2019-03-04
[BUG FIXES] [BUG FIXES]

View File

@@ -37,8 +37,8 @@ ajax '/ajax/content/search/node' => require_login sub {
time_last => [ { '<', $start }, { '>', $end } ] time_last => [ { '<', $start }, { '>', $end } ]
]); ]);
@wifitimes = (-or => [ @wifitimes = (-or => [
time_first => [ undef ], time_last => [ undef ],
time_last => [ { '<', $start }, { '>', $end } ] time_last => [ { '<', $start }, { '>', $end } ],
]); ]);
@porttimes = (-or => [ @porttimes = (-or => [
creation => [ undef ], creation => [ undef ],
@@ -57,10 +57,7 @@ ajax '/ajax/content/search/node' => require_login sub {
], ],
]); ]);
@wifitimes = (-or => [ @wifitimes = (-or => [
-and => [ time_last => undef,
time_first => undef,
time_last => undef,
],
-and => [ -and => [
time_last => { '>=', $start }, time_last => { '>=', $start },
time_last => { '<=', $end }, time_last => { '<=', $end },