From 153ff795abd75e8117b7dc2001f8c6d552ab5eae 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 Signed-off-by: Martin Renvoize Signed-off-by: Jonathan Druart --- .../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 df606aab7f..27ca89ba9e 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.39.5