[Koha-bugs] [Bug 8490] Error when adding label layout under plack
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Nov 2 13:17:39 CET 2012
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8490
Jared Camins-Esakov <jcamins at cpbibliography.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #13197|0 |1
is obsolete| |
--- Comment #5 from Jared Camins-Esakov <jcamins at cpbibliography.com> ---
Created attachment 13208
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=13208&action=edit
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 at 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.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list