Koha/labels
Paul Poulain 7002e5d86a Bug 8490: fix Plack error when creating label layout
This patch fixes "Error message "Can't bless non-reference value at
/home/pi/koha/C4/Creators/Layout.pm line 111." when trying to add a
label layout while using plack."

The $layout_id variable is set to 5001 on my setup. And 5001 is the Unix
port where I run Plack. WTH is this value stored in this variable ?
Because of
> my $layout_id = $cgi->param('layout_id') || $cgi->param('element_id') || $ARGV[1] || '';
in label-edit-layout.pl

Removing $ARGV[1] solves the problem
Also removing $ARG[0] because I also don't think it's useful

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
Signed off after confirming with Chris Nighswonger that these scripts
were not intended to be run from the command line. Works as promised.

Passed-QA-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
2012-11-05 08:35:06 -05:00
..
label-create-csv.pl Bug 8442 - labels creator fixes for plack 2012-07-24 16:21:05 +02:00
label-create-pdf.pl Bug 8442 - labels creator fixes for plack 2012-07-24 16:21:05 +02:00
label-create-xml.pl Bug 8442 - labels creator fixes for plack 2012-07-24 16:21:05 +02:00
label-edit-batch.pl Bug 8315 - remove use C4::* version 2012-07-13 14:17:20 +02:00
label-edit-layout.pl Bug 8490: fix Plack error when creating label layout 2012-11-05 08:35:06 -05:00
label-edit-profile.pl Bug 8315 - remove use C4::* version 2012-07-13 14:17:20 +02:00
label-edit-template.pl Bug 8315 - remove use C4::* version 2012-07-13 14:17:20 +02:00
label-home.pl
label-item-search.pl
label-manage.pl Bug 8315 - remove use C4::* version 2012-07-13 14:17:20 +02:00
label-print.pl Bug 8315 - remove use C4::* version 2012-07-13 14:17:20 +02:00
spinelabel-home.pl
spinelabel-print.pl