Bug 12556: Remove unused HTML
Koha::Hold::is_at_destination() already checks for found = 'W' so the ELSE code path which would print "Item waiting to be pulled from [...]" never gets executed. Signed-off-by: Timothy Alexis Vass <timothy_alexis.vass@ub.lu.se> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
3db0ee0001
commit
bb3e76f7f9
|
|
@ -104,18 +104,14 @@
|
|||
[% IF ( HOLD.is_waiting ) %]
|
||||
<i class="fa fa-exclamation-circle text-warning" aria-hidden="true"></i>
|
||||
[% IF ( HOLD.is_at_destination ) %]
|
||||
[% IF ( HOLD.found ) %]
|
||||
Item waiting at <strong> [% HOLD.branch.branchname | html %]</strong>
|
||||
[% IF ( HOLD.waitingdate ) %]
|
||||
since [% HOLD.waitingdate | $KohaDates %]
|
||||
[% IF HOLD.expirationdate %]
|
||||
until [% HOLD.expirationdate | $KohaDates %]
|
||||
[% END %]
|
||||
Item waiting at <strong> [% HOLD.branch.branchname | html %]</strong>
|
||||
[% IF ( HOLD.waitingdate ) %]
|
||||
since [% HOLD.waitingdate | $KohaDates %]
|
||||
[% IF HOLD.expirationdate %]
|
||||
until [% HOLD.expirationdate | $KohaDates %]
|
||||
[% END %]
|
||||
<input type="hidden" name="pickup" value="[% HOLD.branchcode | html %]" />
|
||||
[% ELSE %]
|
||||
Item waiting to be pulled from <strong> [% Branches.GetName( HOLD.branchcode ) | html %]</strong>
|
||||
[% END %]
|
||||
<input type="hidden" name="pickup" value="[% HOLD.branchcode | html %]" />
|
||||
[% ELSE %]
|
||||
Item in transit to <strong> [% Branches.GetName( HOLD.branchcode ) | html %]</strong> <input type="hidden" name="pickup" value="[% HOLD.branchcode | html %]" />
|
||||
[% END %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue