Bug 28569: In opac-suggestions.pl preselect user library
In OPAC new purchase suggestion opac-suggestions.pl for library combobox : actually first value is selected, user library should be selected. Test plan : 1) Create a new library named 'ZZZ top' 2) Set this library on a user U1 2) Loggin at OPAC with user U1 3) Create a new suggestion => Check library 'ZZZ top' is preselected Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
8ba95bf885
commit
cdc0f07f5d
|
|
@ -186,13 +186,13 @@
|
|||
[% IF ( branchcode_required ) %]
|
||||
<label for="branch" class="required">Library:</label>
|
||||
<select name="branchcode" id="branch" required="required">
|
||||
[% PROCESS options_for_libraries libraries => Branches.all( selected => branchcode ) %]
|
||||
[% PROCESS options_for_libraries libraries => Branches.all %]
|
||||
</select>
|
||||
<span class="required">Required</span>
|
||||
[% ELSE %]
|
||||
<label for="branch">Library:</label>
|
||||
<select name="branchcode" id="branch">
|
||||
[% PROCESS options_for_libraries libraries => Branches.all( selected => branchcode ) %]
|
||||
[% PROCESS options_for_libraries libraries => Branches.all %]
|
||||
</select>
|
||||
[% END %]
|
||||
</li>
|
||||
|
|
|
|||
Loading…
Reference in New Issue