[koha-commits] main Koha release repository branch new/bug_6840 created. v3.04.00-700-g37902b2

Git repo owner gitmaster at git.koha-community.org
Thu Oct 13 05:18:07 CEST 2011


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "main Koha release repository".

The branch, new/bug_6840 has been created
        at  37902b25a7aa5c9e1b3f90e8cbb50741b27dae1d (commit)

- Log -----------------------------------------------------------------
commit 37902b25a7aa5c9e1b3f90e8cbb50741b27dae1d
Author: Paul Poulain <paul.poulain at biblibre.com>
Date:   Fri Sep 2 18:39:53 2011 +0200

    Bug 6840 warning in logs
    
    In staff interface, in search (catalogue/search.pl), there is a warning saying:
    [Fri Sep  2 18:20:24 2011] search.pl: Use of uninitialized value $key in hash
    element at /home/paul/koha.dev/koha-community/C4/Templates.pm line 227.
    
    The problem happens when searching from the quick search toolbar, not when you
    search from advanced search.
    Investigating, it seems it's because the sort_by is not defined in this case.
    
    This patch
    * fixes the problem in Search.pl by setting the parameter only if there is a sort_by field
    * modify te Template->param sub to get a better error message. Instead of having just "use of uninitia..." get the value you try to set to an empty key. Much easier to understand which line causes the problem
    
    Signed-off-by: Owen Leonard <oleonard at myacpl.org>
    Signed-off-by: Ian Walls <ian.walls at bywatersolutions.com>
    Signed-off-by: Chris Cormack <chrisc at catalyst.net.nz>

-----------------------------------------------------------------------


hooks/post-receive
-- 
main Koha release repository


More information about the koha-commits mailing list