[koha-commits] main Koha release repository branch, new/bug_5529, created. v3.02.00-1085-g0cf2ecc
Git repo owner
gitmaster at git.koha-community.org
Fri Apr 8 00:54:29 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_5529 has been created
at 0cf2eccfe926f77753a2b948e2babf077e2975d3 (commit)
- Log -----------------------------------------------------------------
commit 0cf2eccfe926f77753a2b948e2babf077e2975d3
Author: Colin Campbell <colin.campbell at ptfs-europe.com>
Date: Thu Apr 7 16:25:27 2011 +0200
Bug 5529 Absence or Presence of lists not being reliably returned
C4::VirtualShelves::GetRecentShelves contained some rather confused
code The contents of the requested list are returned in an arrayref
which was in its turn being wrapped needlessly in an array
As a result the returned array always consisted of a single element
irrespective of the number of lists.
Made the routine return the arrayref, which can now be tested directly
Unfortunately rather than fixing this we had previously coded around it
assuming it to be a "design" decision. Have amended other calls of
the subroutine resulting in some hopefully less obscure code
Fixed logic error in the results template which displayed new list
within a test for the presence of lists
Removed the offset parameter from the sql in the routine as it was hardcoded
to 0 i.e. the default value
Signed-off-by: fdurand <frederic.durand at univ-lyon2.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