</li>
[% IF ( branchloop ) %]
<li><label for="branch">Library:</label>
- <select name="branch" id="branch">
+ <select name="branchcode" id="branch">
[% FOREACH branchloo IN branchloop %]
[% IF ( branchloo.selected ) %]
<option value="[% branchloo.branchcode %]" selected="selected">[% branchloo.branchname %]</option>
$suggestion->{$suggest} = $scrubber->scrub($suggestion->{$suggest});
}
$suggestion->{suggesteddate} = dt_from_string;
- $$suggestion{'branchcode'}= $input->param('branch') || C4::Context->userenv->{"branch"};
+ $suggestion->{branchcode} = $input->param('branchcode') || C4::Context->userenv->{"branch"};
&NewSuggestion($suggestion);
# empty fields, to avoid filter in "SearchSuggestion"
if (C4::Context->userenv && C4::Context->userenv->{'branch'}) {
$userbranch = C4::Context->userenv->{'branch'};
}
- my $branch = $input->param('branch') || $borr->{'branchcode'} || $userbranch || '' ;
+ my $branchcode = $input->param('branchcode') || $borr->{'branchcode'} || $userbranch || '' ;
# make branch selection options...
- my $branchloop = GetBranchesLoop($branch);
+ my $branchloop = GetBranchesLoop($branchcode);
$template->param( branchloop => $branchloop );
}