Handle both ways the UI passes in booleans (#500)

* Handle both ways the UI passes in booleans

* fix the JS test

* Quote the value
This commit is contained in:
gbrodman
2020-03-02 12:49:09 -05:00
committed by GitHub
parent e8ff4081a9
commit fec806ef8b
3 changed files with 16 additions and 7 deletions
@@ -256,10 +256,13 @@
{param placeholder: $placeholder /}
{/call}
{/if}
{if isNonnull($item['allowedToSetRegistryLockPassword'])}
<input type="hidden" name="allowedToSetRegistryLockPassword"
value="{$item['allowedToSetRegistryLockPassword']}">
{/if}
<input type="hidden" name="{$namePrefix}allowedToSetRegistryLockPassword"
{if isNonnull($item['allowedToSetRegistryLockPassword'])}
value="{$item['allowedToSetRegistryLockPassword']}"
{else}
value="false"
{/if}
>
<tr>
<td colspan="2">
<hr>