diff --git a/Koha/Ticket.pm b/Koha/Ticket.pm index ea17e899de..59792e24bf 100644 --- a/Koha/Ticket.pm +++ b/Koha/Ticket.pm @@ -196,6 +196,16 @@ sub strings_map { } ); + # Fall back to TICKET_RESOLUTION as needed + if ( !$av->count ) { + $av = Koha::AuthorisedValues->search( + { + category => 'TICKET_RESOLUTION', + authorised_value => $self->status, + } + ); + } + my $status_str = $av->count ? $params->{public} diff --git a/Koha/Ticket/Update.pm b/Koha/Ticket/Update.pm index 1ad6b6577a..dad68226f0 100644 --- a/Koha/Ticket/Update.pm +++ b/Koha/Ticket/Update.pm @@ -85,6 +85,16 @@ sub strings_map { } ); + # Fall back to TICKET_RESOLUTION as needed + if ( !$av->count ) { + $av = Koha::AuthorisedValues->search( + { + category => 'TICKET_RESOLUTION', + authorised_value => $self->status, + } + ); + } + my $status_str = $av->count ? $params->{public} diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/modals/display_ticket.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/modals/display_ticket.inc index 29c258d21b..5a3479a0de 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/modals/display_ticket.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/modals/display_ticket.inc @@ -1,5 +1,6 @@ [% USE AuthorisedValues %] [% SET status = AuthorisedValues.GetAuthValueDropbox('TICKET_STATUS') %] +[% SET resolutions = AuthorisedValues.GetAuthValueDropbox('TICKET_RESOLUTION') %]