@@ -, +, @@ show button when status is NEW. --- Koha/Illrequest.pm | 12 ++++++------ koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests.tt | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) --- a/Koha/Illrequest.pm +++ a/Koha/Illrequest.pm @@ -231,12 +231,12 @@ sub _core_status_graph { ui_method_icon => 'fa-plus', # UI Style class }, REQ => { - prev_actions => [ 'NEW', 'REQREV', 'QUEUED' ], + prev_actions => [ 'NEW', 'REQREV', 'QUEUED', 'CANCREQ' ], id => 'REQ', name => 'Requested', ui_method_name => 'Confirm request', method => 'confirm', - next_actions => [ 'REQREV', 'CANCREQ', 'COMP' ], + next_actions => [ 'REQREV', 'COMP' ], ui_method_icon => 'fa-check', }, GENREQ => { @@ -249,7 +249,7 @@ sub _core_status_graph { ui_method_icon => 'fa-send-o', }, REQREV => { - prev_actions => [ 'CANCREQ', 'REQ' ], + prev_actions => [ 'REQ' ], id => 'REQREV', name => 'Request reverted', ui_method_name => 'Revert Request', @@ -267,12 +267,12 @@ sub _core_status_graph { ui_method_icon => 0, }, CANCREQ => { - prev_actions => [ 'REQ' ], + prev_actions => [ 'NEW' ], id => 'CANCREQ', name => 'Cancellation requested', ui_method_name => 0, method => 0, - next_actions => [ 'REQREV' ], + next_actions => [ 'KILL', 'REQ' ], ui_method_icon => 0, }, COMP => { @@ -285,7 +285,7 @@ sub _core_status_graph { ui_method_icon => 'fa-check', }, KILL => { - prev_actions => [ 'QUEUED', 'REQREV', 'NEW' ], + prev_actions => [ 'QUEUED', 'REQREV', 'NEW', 'CANCREQ' ], id => 'KILL', name => 0, ui_method_name => 'Delete request', --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests.tt +++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests.tt @@ -183,7 +183,7 @@ [% IF !request.completed %] - [% IF request.status != "CANCREQ" %] + [% IF request.status == "NEW" %] Request cancellation [% END %] --