From 7959204a6787711423a0b6b3db0949b15c7770aa Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Tue, 20 Oct 2020 18:19:46 +0000 Subject: [PATCH] Bug 24370: (QA follow-up) Make new suggestions default to the library you re viewing It looks like this problem was caused by code from bug 25033, we were attempting to have the dropdown either be the current branch filter, or the suggestion's branch code, but the variables here are confusing and it didn't work This explicitly sets the branchcode when creating a new suggestion to allow fixing current behaviour and show the correct value when creating new To test: 1 - Be signed in as branch A 2 - Browse to suggestions and limit to branch "Any" 3 - Click 'New suggestion" 4 - Defaults to Any 5 - Cancel and limit to branch B 6 - New suggestion defaults to branch B Signed-off-by: Nick Clemens --- .../intranet-tmpl/prog/en/modules/suggestion/suggestion.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 3b1f34ba5f5..6ddb2a4d145 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt @@ -658,7 +658,7 @@ [% IF op == 'else' %]

Suggestions management

-- 2.25.1