[-] BO : fixed JS bug in category creation with URL rewrite field
This commit is contained in:
@@ -48,6 +48,20 @@
|
|||||||
{$smarty.block.parent}
|
{$smarty.block.parent}
|
||||||
{/if}
|
{/if}
|
||||||
{/block}
|
{/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"}
|
{block name="description"}
|
||||||
{$smarty.block.parent}
|
{$smarty.block.parent}
|
||||||
{if ($input.name == 'groupBox')}
|
{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['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())
|
if (Shop::isFeatureActive())
|
||||||
$this->fields_form['input'][] = array(
|
$this->fields_form['input'][] = array(
|
||||||
'type' => 'shop',
|
'type' => 'shop',
|
||||||
|
|||||||
Reference in New Issue
Block a user