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:
parent
a707d10d80
commit
9b0a44322f
2 changed files with 4 additions and 4 deletions
|
@ -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',
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue