Do not default-escape weight field on order
authorEileen McNaughton <emcnaughton@wikimedia.org>
Wed, 15 Dec 2021 09:05:15 +0000 (22:05 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Wed, 15 Dec 2021 09:06:57 +0000 (22:06 +1300)
templates/CRM/Admin/Page/Options.tpl

index 93d6d476842268844cebb1711aab95bbb7031492..ab1ee9f23d3f3a01d20107c6e9810342099737c7 100644 (file)
               <td class="center crm-admin-options-filter">{icon condition=$row.filter}{ts}Counted{/ts}{/icon}</td>
             {/if}
             <td class="crm-admin-options-description crm-editable" data-field="description" data-type="textarea">{$row.description}</td>
-            <td class="nowrap crm-admin-options-order">{if $row.weight}{$row.weight}{/if}</td>
+            <td class="nowrap crm-admin-options-order">{if $row.weight}{$row.weight|smarty:nodefaults}{/if}</td>
             {if $showIsDefault}
               <td class="crm-admin-options-is_default" align="center">{if $row.is_default}{icon}{ts}Default{/ts}{/icon}{/if}&nbsp;</td>
             {/if}