From b03cfadc20542ffe1f32678ceb0bb34f0df5a1e7 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Tue, 30 Aug 2022 10:19:24 -0300 Subject: [PATCH] Bug 31378: Add 'parameter' parameter to Koha::Exceptions::MissingParameter Signed-off-by: Lukasz Koszyk Signed-off-by: Tomas Cohen Arazi Signed-off-by: Nick Clemens Signed-off-by: Martin Renvoize --- Koha/Exceptions.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Koha/Exceptions.pm b/Koha/Exceptions.pm index 249e5f1d59..80156abee7 100644 --- a/Koha/Exceptions.pm +++ b/Koha/Exceptions.pm @@ -42,7 +42,8 @@ use Exception::Class ( }, 'Koha::Exceptions::MissingParameter' => { isa => 'Koha::Exception', - description => 'A required parameter is missing' + description => 'A required parameter is missing', + fields => ['parameter'], }, 'Koha::Exceptions::ParameterTooHigh' => { isa => 'Koha::Exception', -- 2.20.1