From c813e7ed6d69295bb9ed549a4ca985d2e35febbf Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Wed, 28 Jun 2023 15:01:31 +0000 Subject: [PATCH] Bug 33716: (QA follow-up) Fix copy/paste issues in Workflow.pm and TypeDisclaimer.pm Signed-off-by: Nick Clemens Signed-off-by: Tomas Cohen Arazi --- Koha/Illrequest/Workflow.pm | 13 ++++++------- Koha/Illrequest/Workflow/TypeDisclaimer.pm | 4 ++-- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/Koha/Illrequest/Workflow.pm b/Koha/Illrequest/Workflow.pm index d2b4e157a8..d0bc2564f2 100644 --- a/Koha/Illrequest/Workflow.pm +++ b/Koha/Illrequest/Workflow.pm @@ -28,16 +28,15 @@ use Koha::Plugins; =head1 NAME -Koha::Illrequest::TypeDisclaimer - Koha ILL TypeDisclaimer +Koha::Illrequest::Workflow - Koha ILL Workflow parent class =head1 SYNOPSIS -Object-oriented class that provides the ILL request type disclaimer +Object-oriented parent class for ILL workflow stages =head1 DESCRIPTION -This class provides the ability to verify if it should render type disclaimer -and handle the template params accordingly +This class contains methods do be used by ILL workflow stages =head1 API @@ -45,10 +44,10 @@ and handle the template params accordingly =head3 new - my $type_disclaimer = Koha::Illrequest::Logger->new($metadata); + my $availability = Koha::Illrequest::Workflow::Availability->new( $params, 'opac' ) -Create a new Koha::Illrequest::TypeDisclaimer object. -We also store the metadata to be used to retrieve the request type +Create a new Koha::Illrequest::Workflow child class object. +We store the metadata and ui_context =cut diff --git a/Koha/Illrequest/Workflow/TypeDisclaimer.pm b/Koha/Illrequest/Workflow/TypeDisclaimer.pm index 675918a1d6..dea466d9be 100644 --- a/Koha/Illrequest/Workflow/TypeDisclaimer.pm +++ b/Koha/Illrequest/Workflow/TypeDisclaimer.pm @@ -113,9 +113,9 @@ sub type_disclaimer_template_params { =head3 after_request_created - #example here + $type_disclaimer->after_request_created($params, $request); -#description here +Actions that need to be done after the request has been created =cut -- 2.39.5