From 2f08c5b8ae3cc4328280405cd4df56e8806856dd Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Thu, 28 May 2026 16:38:00 +0000 Subject: [PATCH] Bug 42710: Set library to logged in library for new suggestions To test: 1. Acquisitions -> Suggestions ->Add suggestion 2. Notice the under Acquisition information the library is set to Any 3. APPLY PATCH 4. Try again, library should be set to the logged in library. 5. Make a suggestion and set it to some branch other then the logged in branch 6 Edit the suggestion from step 5, ensure that the "Library:" is properly set Signed-off-by: David Nind Signed-off-by: Baptiste Wojtkowski Signed-off-by: Lucas Gass --- .../intranet-tmpl/prog/en/modules/suggestion/suggestion.tt | 2 +- suggestion/suggestion.pl | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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 504981ed58..30a2351112 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt @@ -606,7 +606,7 @@
  • [% PROCESS funds_dropdown %]
  • diff --git a/suggestion/suggestion.pl b/suggestion/suggestion.pl index ab4d352bd6..284a47b5a8 100755 --- a/suggestion/suggestion.pl +++ b/suggestion/suggestion.pl @@ -296,7 +296,6 @@ if ( $op =~ /cud-save/ ) { $template->param( other_reason => $other_reason, default_manageddate => dt_from_string, - default_branch => C4::Context->userenv->{"branch"}, ); $op = 'save'; } elsif ( $op eq "cud-update_status" ) {