From 9b0a44322f89f3819ea33f0015c1c4191c66002d Mon Sep 17 00:00:00 2001 From: Andrew Isherwood Date: Mon, 25 Jan 2021 11:18:29 +0000 Subject: [PATCH] Bug 27542: Allow cancellation of partner ILL This commit enables the display of the "Revert request" button when a request's status is GENREQ / "Requested from partners" The relevant unit test has also been updated Rescued-by: Martin Renvoize Signed-off-by: Stephen Graham Signed-off-by: Pedro Amorim Signed-off-by: Tomas Cohen Arazi --- Koha/Illrequest.pm | 4 ++-- t/db_dependent/Illrequests.t | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Koha/Illrequest.pm b/Koha/Illrequest.pm index 90dab74b17..5d674c5019 100644 --- a/Koha/Illrequest.pm +++ b/Koha/Illrequest.pm @@ -530,11 +530,11 @@ sub _core_status_graph { name => 'Requested from partners', ui_method_name => 'Place request with partners', method => 'generic_confirm', - next_actions => [ 'COMP', 'CHK' ], + next_actions => [ 'COMP', 'CHK', 'REQREV' ], ui_method_icon => 'fa-send-o', }, REQREV => { - prev_actions => [ 'REQ' ], + prev_actions => [ 'REQ', 'GENREQ' ], id => 'REQREV', name => 'Request reverted', ui_method_name => 'Revert Request', diff --git a/t/db_dependent/Illrequests.t b/t/db_dependent/Illrequests.t index 01b13f2cd3..bccaabefc2 100755 --- a/t/db_dependent/Illrequests.t +++ b/t/db_dependent/Illrequests.t @@ -349,11 +349,11 @@ subtest 'Status Graph tests' => sub { name => 'Requested from partners', ui_method_name => 'Place request with partners', method => 'generic_confirm', - next_actions => [ 'COMP', 'CHK' ], + next_actions => [ 'COMP', 'CHK', 'REQREV' ], ui_method_icon => 'fa-send-o', }, REQREV => { - prev_actions => [ 'REQ' ], + prev_actions => [ 'REQ', 'GENREQ' ], id => 'REQREV', name => 'Request reverted', ui_method_name => 'Revert Request', -- 2.39.5