Koha-clms/catalogue
Jonathan Druart f307bc2786 Bug 28213: Prevent crash if patron or club deleted after search to hold
Deleting a patron or patron club causes server error on searching.

To recreate:
- create a club template
- create a club
- enroll a patron in the club
- from the clubs page, select Search To Hold for your club
- do a search, see that it says "Hold for [club name]" in your search results page
- go back to the clubs page and delete your club
- try to perform a search
=> Without this patch you get "Can't call method "name" on an undefined value at /kohadevbox/koha/catalogue/search.pl line 207"

Same when placing a hold for a patron (check the search result and the
detail pages)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 0633590f55)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2021-04-30 11:10:59 +02:00
..
ISBDdetail.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
MARCdetail.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
detail.pl Bug 28213: Prevent crash if patron or club deleted after search to hold 2021-04-30 11:10:59 +02:00
export.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
getitem-ajax.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
image.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
imageviewer.pl Bug 28178: Display the correct image in the image viewer 2021-04-30 10:38:17 +02:00
issuehistory.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
item-export.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
itemsearch.pl Bug 26032: (follow-up) show 'is new' filter only if items.new_status is used 2020-11-04 12:59:32 +01:00
labeledMARCdetail.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
moredetail.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
search-history.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
search.pl Bug 28213: Prevent crash if patron or club deleted after search to hold 2021-04-30 11:10:59 +02:00
showmarc.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
stockrotation.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
updateitem.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00