Bug 14153: Noisy warns in admin/transport-cost-matrix.pl

To test:

1) Go to Admin -> Transport cost matrix
2) Notice the warns in the error log
3) Apply the patch and refresh page
4) Notice page still works but no warns in error log

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Amended patch: Init a $op variable, if it must be reused later.

Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
(cherry picked from commit 825d68ee86)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
(cherry picked from commit 21465d93d5)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
This commit is contained in:
Aleisha 2015-12-13 22:24:05 +00:00 committed by Frédéric Demians
parent c80033b277
commit 002e33b37a
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ my ($template, $loggedinuser, $cookie)
});
my $use_transport_cost_matrix = C4::Context->preference("UseTransportCostMatrix");
my $update = $input->param('op') eq 'set-cost-matrix';
my $update = ( $input->param('op') // '' ) eq 'set-cost-matrix';
my ($cost_matrix, $have_matrix);
unless ($update) {