[-] BO : fixed JS bug in category creation with URL rewrite field

This commit is contained in:
vAugagneur
2012-11-15 13:29:29 +00:00
parent a0a6a3d3b6
commit 9c8ef4c4ce
2 changed files with 15 additions and 1 deletions
@@ -48,6 +48,20 @@
{$smarty.block.parent}
{/if}
{/block}
{block name="input"}
{if $input.name == "link_rewrite"}
<script type="text/javascript">
{if isset($PS_ALLOW_ACCENTED_CHARS_URL) && $PS_ALLOW_ACCENTED_CHARS_URL}
var PS_ALLOW_ACCENTED_CHARS_URL = 1;
{else}
var PS_ALLOW_ACCENTED_CHARS_URL = 0;
{/if}
</script>
{$smarty.block.parent}
{else}
{$smarty.block.parent}
{/if}
{/block}
{block name="description"}
{$smarty.block.parent}
{if ($input.name == 'groupBox')}
@@ -462,7 +462,7 @@ class AdminCategoriesControllerCore extends AdminController
);
$this->tpl_form_vars['shared_category'] = Validate::isLoadedObject($obj) && $obj->hasMultishopEntries();
$this->tpl_form_vars['PS_ALLOW_ACCENTED_CHARS_URL'] = (int)Configuration::get('PS_ALLOW_ACCENTED_CHARS_URL');
if (Shop::isFeatureActive())
$this->fields_form['input'][] = array(
'type' => 'shop',