[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 12:14:23 CET 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8490

Paul Poulain <paul.poulain at biblibre.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |cnighswonger at foundations.ed
                   |                            |u,
                   |                            |paul.poulain at biblibre.com
           Assignee|cnighswonger at foundations.ed |paul.poulain at biblibre.com
                   |u                           |

--- Comment #1 from Paul Poulain <paul.poulain at biblibre.com> ---
Chris_n => THIS IS FOR YOU !

I think I've understood why the problem occurs:
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

Why is the ARGV[1] here, I have no idea. Is this script sometimes run from
commandline ? I don't think so.

This ||ARGV[1] has been added by chris_n in the commit :
12663796ca87cf87f89fd1ba1f2949ec33b76b85

Auteur: Chris Nighswonger <cnighswonger at foundations.edu>  2009-07-20 19:24:49
    [8/40] Adding new layout management page

    This moves the layouts off of the labels tool start page to bring it into
    conformity with the other parts of this tool.


assigning bug to me, and adding chris_n in cc:

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list