From e99d560e14d4714c8c03cd9def58d985cb2da8c6 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Fri, 12 Jul 2019 13:41:21 +0000 Subject: [PATCH] Bug 23123: Add missing suggestion status to template for translation This completes suggestion status options in the templates in 2 places so all values can be translated and show correctly. To test: - Create 2 suggestions - Accept them - Create a basket and order those 2 from suggestions - Close the basket - Receive shipment and receive one of the 2 suggestions - Go back to suggestions: - Look at the status column in the suggestions table for both - Verify that it shows AVAILABLE - View both suggestions - Verify that the Status: is empty - Apply patch - Repeat test from above, it should all show nicely now --- koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt index c97bf73976..f6ee5cdfd1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt @@ -141,6 +141,12 @@ [% ELSIF ( STATUS == 'REJECTED' ) %] Rejected [% SET status_found = 1 %] + [% ELSIF ( STATUS == 'ORDERED' ) %] + Ordered + [% SET status_found = 1 %] + [% ELSIF ( STATUS == 'AVAILABLE' ) %] + Available + [% SET status_found = 1 %] [% ELSE %] [% FOREACH s IN SuggestionStatuses %] [% IF STATUS == s.authorised_value %] @@ -514,6 +520,8 @@ Rejected [% ELSIF ( suggestions_loo.CHECKED ) %] Checked + [% ELSIF ( suggestions_loo.AVAILABLE ) %] + Available [% ELSIF AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestions_loo.STATUS ) %] [% AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestions_loo.STATUS ) | html %] [% ELSE %] -- 2.11.0