Commit edabaf8f authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Fixes #5506 Avoiding PHP errors when focusedField is not set

parent ddc63f3a
......@@ -12,9 +12,11 @@
<input name="{$hiddenPostedInput}" value="1" type="hidden"/>
{/if}
<!-- Place cursor -->
<script type="text/javascript">
<!-- // First input field on page
focus_field('{$focusedField}');
-->
</script>
{if isset($focusedField)}
<!-- Place cursor -->
<script type="text/javascript">
<!-- // First input field on page
focus_field('{$focusedField}');
-->
</script>
{/if}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment