From 4942ef60a9693f6c6d2ad2835891235fc369a3ea Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 5 May 2022 11:14:44 +0100 Subject: [PATCH] Bug 30291: (QA follow-up) Fix for revert to recall_id --- C4/Letters.pm | 2 +- Koha/Recall.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/Letters.pm b/C4/Letters.pm index ddb43568fc..7c63b23d8e 100644 --- a/C4/Letters.pm +++ b/C4/Letters.pm @@ -751,7 +751,7 @@ sub _parseletter_sth { ($table eq 'serial') ? "SELECT * FROM $table WHERE serialid = ?" : ($table eq 'problem_reports') ? "SELECT * FROM $table WHERE reportid = ?" : ($table eq 'additional_contents' || $table eq 'opac_news') ? "SELECT * FROM additional_contents WHERE idnew = ?" : - ($table eq 'recalls') ? "SELECT * FROM $table WHERE id = ?" : + ($table eq 'recalls') ? "SELECT * FROM $table WHERE recall_id = ?" : undef ; unless ($query) { warn "ERROR: No _parseletter_sth query for table '$table'"; diff --git a/Koha/Recall.pm b/Koha/Recall.pm index ebe2037c93..a97e741b64 100644 --- a/Koha/Recall.pm +++ b/Koha/Recall.pm @@ -354,7 +354,7 @@ sub set_waiting { biblio => $self->biblio_id, borrowers => $self->patron_id, items => $itemnumber, - recalls => $self->id, + recalls => $self->recall_id, }, ); -- 2.20.1