Lines 28-34
use CGI::Cookie; # need to check cookies before having CGI parse the POST reques
Link Here
|
28 |
|
28 |
|
29 |
use C4::Auth qw(:DEFAULT check_cookie_auth); |
29 |
use C4::Auth qw(:DEFAULT check_cookie_auth); |
30 |
use C4::Context; |
30 |
use C4::Context; |
31 |
use C4::Dates qw(format_date format_date_in_iso); |
31 |
use Koha::DateUtils; |
32 |
# use C4::Koha; |
32 |
# use C4::Koha; |
33 |
use C4::Output qw(:html :ajax pagination_bar); |
33 |
use C4::Output qw(:html :ajax pagination_bar); |
34 |
use C4::Debug; |
34 |
use C4::Debug; |
Lines 169-175
if ($filter = $input->param('tag')) {
Link Here
|
169 |
$filters{term} = $filter; |
169 |
$filters{term} = $filter; |
170 |
} |
170 |
} |
171 |
if ($filter = $input->param('from')) { |
171 |
if ($filter = $input->param('from')) { |
172 |
if ($date_from = format_date_in_iso($filter)) { |
172 |
$date_from = eval { output_pref( { dt => dt_from_string( $filter ), dateonly => 1, dateformat => 'iso' } ); }; |
|
|
173 |
if ( $date_from ) { |
173 |
$template->param(filter_date_approved_from=>$filter); |
174 |
$template->param(filter_date_approved_from=>$filter); |
174 |
$filters{date_approved} = ">=$date_from"; |
175 |
$filters{date_approved} = ">=$date_from"; |
175 |
} else { |
176 |
} else { |
Lines 177-183
if ($filter = $input->param('from')) {
Link Here
|
177 |
} |
178 |
} |
178 |
} |
179 |
} |
179 |
if ($filter = $input->param('to')) { |
180 |
if ($filter = $input->param('to')) { |
180 |
if ($date_to = format_date_in_iso($filter)) { |
181 |
$date_to = eval { output_pref( { dt => dt_from_string( $filter ), dateonly => 1, dateformat => 'iso' } ); }; |
|
|
182 |
if ( $date_to ) { |
181 |
$template->param(filter_date_approved_to=>$filter); |
183 |
$template->param(filter_date_approved_to=>$filter); |
182 |
$filters{date_approved} = "<=$date_to"; |
184 |
$filters{date_approved} = "<=$date_to"; |
183 |
} else { |
185 |
} else { |
184 |
- |
|
|