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 <martin.renvoize@ptfs-europe.com>
Signed-off-by: Stephen Graham <s.graham4@herts.ac.uk>
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Andrew Isherwood 2021-01-25 11:18:29 +00:00 committed by Tomas Cohen Arazi
parent a707d10d80
commit 9b0a44322f
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F
2 changed files with 4 additions and 4 deletions

View file

@ -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',

View file

@ -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',