Bug 19372: (bug 15801 follow-up) pass selected frameworkcode to the template

Bug 15801 removes the 2 lines that were necessary to retrieve the
framework selected by the user and pass it to the template.
All bibliographic records created when adding an order to the basket
using an external source used the default framework.

Test plan:
Add an order to a basket from an external source
Select another framework than the default one
=> Without this patch, whatever the framework you picked, the default
one is used
=> With this patch applied the framework code you will pick will be used

Signed-off-by: Marijana Glavica <mglavica@ffzg.hr>

Signed-off-by: Marijana Glavica <mglavica@ffzg.hr>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 60a17c1b2b)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Jonathan Druart 2017-09-27 12:54:18 -03:00 committed by Fridolin Somers
parent e23822b869
commit 13f9359dc3
1 changed files with 2 additions and 0 deletions

View File

@ -34,6 +34,7 @@ use Koha::BiblioFrameworks;
my $input = new CGI;
my $biblionumber = $input->param('biblionumber')||0;
my $frameworkcode = $input->param('frameworkcode') || q{};
my $title = $input->param('title');
my $author = $input->param('author');
my $isbn = $input->param('isbn');
@ -63,6 +64,7 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
}
);
$template->param(
frameworkcode => $frameworkcode,
frameworks => $frameworks,
booksellerid => $booksellerid,
basketno => $basketno,