Bug 24798: smart-rules.tt has erroneous comments
This patch corrects a couple of invalid Template Toolkit comments in the Circulation and Fines rules template. To test, apply the patch and log into the staff client as an administrator. On the Circulation and Fines Rules page "View source" and look for instances of the text "[#% Default branch %#]" There should be none. Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> [EDIT] There is a theoretical difference between [% # and [%#. The latter marks the whole directive as a comment and not just until EOL. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Joy Nelson <joy@bywatersolutions.com> (cherry picked from commit1fbd446864) Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> (cherry picked from commitb791fabc93) Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz>
This commit is contained in:
parent
88b0ba01e9
commit
ef79c94ebd
|
|
@ -588,7 +588,7 @@
|
|||
<tr>
|
||||
<td>
|
||||
<select name="refund">
|
||||
[#% Default branch %#]
|
||||
[%# Default branch %]
|
||||
[% IF ( current_branch == '*' ) %]
|
||||
[% IF ( ( not refundLostItemFeeRule.refund.defined ) || refundLostItemFeeRule.refund ) %]
|
||||
<option value="1" selected="selected">
|
||||
|
|
@ -605,7 +605,7 @@
|
|||
No
|
||||
</option>
|
||||
[% ELSE %]
|
||||
[#% Branch-specific %#]
|
||||
[%# Branch-specific %]
|
||||
[% IF ( not refundLostItemFeeRule ) %]
|
||||
<option value="*" selected="selected">
|
||||
[% ELSE %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue