[koha-commits] main Koha release repository branch, new/bug_6364, created. v3.04.00-72-g559091c

Git repo owner gitmaster at git.koha-community.org
Sun May 29 05:51:52 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_6364 has been created
        at  559091c5589887adc774e2f217c64de390270d4e (commit)

- Log -----------------------------------------------------------------
commit 559091c5589887adc774e2f217c64de390270d4e
Author: Owen Leonard <oleonard at myacpl.org>
Date:   Wed May 18 11:01:20 2011 -0400

    Fix for Bug 6364 - Display of item availability broken on OPAC detail screen
    
    Owen:
    
    The markup for showing item availability has been moved to an include
    file. The include lacked the scope declaration for the item results
    loop. Adding the scope declaration to the include file means it can't
    be used by other template unless within the same scope, but I'm not
    aware of a better way to do it given the number of variables in use.
    
    Frédéric:
    
    I confirm the bug.
    
    I propose a alternative solution which solve the bug and keep its
    versability-reusability to the include file. With this solution, when including
    item-status.inc, the foreach loop variable name, which can change from template
    to template, is renamed by using a local variable definition: ie a variable
    name specified after file name in the INCLUDE directive, this variable
    temporalily masking any existing variable.
    
    Signed-off-by: Frédéric Demians <f.demians at tamil.fr>
    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