Koha-clms/catalogue
Colin Campbell 554f7f5221 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@univ-lyon2.fr>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 0cf2eccfe9)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-04-16 14:38:40 -04:00
..
ISBDdetail.pl Bug 5385: POD Cleanups (part 2) 2010-11-11 19:48:14 -05:00
MARCdetail.pl Bug 4330 : fixing copyright mail from chris c 2010-12-16 on patches ML 2011-03-22 17:32:14 -04:00
cardview.pl Bug 2505 - Add commented use warnings where missing in the catalogue/ directory 2010-04-21 20:25:13 +12:00
detail.pl Fix for Bug 4885 - Only 1 ISBN shows in non-XSL detail view 2011-01-14 09:43:19 -05:00
detailprint.pl Bug 2505 - Add commented use warnings where missing in the catalogue/ directory 2010-04-21 20:25:13 +12:00
export.pl Bug 2505 - Add commented use warnings where missing in the catalogue/ directory 2010-04-21 20:25:13 +12:00
issuehistory.pl Corrected: Fix for Bug 4529, columns on circ history all screwy 2010-05-24 10:43:28 -04:00
labeledMARCdetail.pl Fix for Bug 4849 - Cannot delete records from Labeled MARC view 2010-10-06 08:16:48 -04:00
moredetail.pl Bug 5731 When No ccode is defined for an item, then moredetail.pl throws a 500 error 2011-02-13 21:38:52 -05:00
search.pl Bug 5529 Absence or Presence of lists not being reliably returned 2011-04-16 14:38:40 -04:00
showmarc.pl Bug 5616: Corrects an utf-8 encoding problem in cardviews 2011-02-09 12:16:54 -05:00
updateitem.pl Fix for Bug 4853 - Rights needed to renew a document 2011-03-05 19:37:36 -05:00