[Koha-bugs] [Bug 8604] Patron cards made for patrons which don't have patron images use preceding card's image
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Oct 1 18:24:01 CEST 2014
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8604
lightpurpledye at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |lightpurpledye at gmail.com
--- Comment #2 from lightpurpledye at gmail.com ---
This problem goes away if you comment out lines 152 - 159 of
/usr/share/koha/intranet/cgi-bin/patroncards (lines beginning "elsif
($images->{$_}->{'data_source'}->[0]->{'image_source'} eq 'creator_images') {"
).
However, doing this also breaks the display of any "Other Image"s (non-patron
photo images) on the card layout.
I have tried adding "$image_data = undef" to the beginning of the foreach loop,
and between lines 152 and 153, under the assumption that $image_data still
contains the image data from the previous iteration until it is reassigned, but
this had no effect.
I think that for some reason the elsif condition on line 152 is matching users
which don't have a photo assigned, but I still don't know why that would result
in the behaviour observed.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list