Bug 22652: Editing Course reserves is broken
To test: 1. Create a course reserve or go on an existing one 2. Add items and add a change for the holdingbranch 3. On the list of items in this course reserve (course_reserves/course-details.pl?course_id=xx), click on "edit" at the end of a row : Without the patch, you can't see the holdingbranch you have choose for this item, but you see "LEAVE UNCHANGED" With the patch, you can see the holdingbranch you have choose when adding this item in the course Signed-off-by: Liz Rea <wizzyrea@gmail.com> Signed-off-by: Mikaël Olangcay Brisebois <mikael.olangcay-brisebois@inLibro.com> Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> (cherry picked from commitba14e9ca7d) Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> (cherry picked from commit27209dea66) Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
6ba72fb43b
commit
8fbf85efd2
|
|
@ -88,7 +88,7 @@
|
|||
<select id="holdingbranch" name="holdingbranch">
|
||||
<option value="">LEAVE UNCHANGED</option>
|
||||
[% FOREACH b IN Branches.all() %]
|
||||
[% IF course_item.holdingbranch.defined && ( ( course.enabled == 'yes' && b.value == item.holdingbranch ) || ( course.enabled == 'no' && b.value == course_item.holdingbranch ) ) %]
|
||||
[% IF course_item.holdingbranch.defined && ( ( course.enabled == 'yes' && b.branchcode == item.holdingbranch ) || ( course.enabled == 'no' && b.branchcode == course_item.holdingbranch ) ) %]
|
||||
<option value="[% b.branchcode | html %]" selected="selected">[% b.branchname | html %]</option>
|
||||
[% ELSE %]
|
||||
<option value="[% b.branchcode %]">[% b.branchname %]</option>
|
||||
|
|
|
|||
Loading…
Reference in New Issue