[-] BO : Fix scroll when errors occurred on modules
This commit is contained in:
@@ -38,7 +38,7 @@
|
|||||||
var by = '{l s='by'}';
|
var by = '{l s='by'}';
|
||||||
var errorLogin = '{l s='PrestaShop was unable to login to Addons, please check your credentials and your internet connection.'}';
|
var errorLogin = '{l s='PrestaShop was unable to login to Addons, please check your credentials and your internet connection.'}';
|
||||||
var confirmPreferencesSaved = '{l s='Preferences saved'}';
|
var confirmPreferencesSaved = '{l s='Preferences saved'}';
|
||||||
{if isset($smarty.get.anchor)}var anchor = '{$smarty.get.anchor|htmlentities|replace:'(':''|replace:')':''|replace:'{':''|replace:'}':''|replace:'\'':''|replace:'/':''}';{else}var anchor = '';{/if}
|
{if isset($smarty.get.anchor) && !isset($error_module)}var anchor = '{$smarty.get.anchor|htmlentities|replace:'(':''|replace:')':''|replace:'{':''|replace:'}':''|replace:'\'':''|replace:'/':''}';{else}var anchor = '';{/if}
|
||||||
|
|
||||||
{literal}
|
{literal}
|
||||||
|
|
||||||
|
|||||||
@@ -771,6 +771,7 @@ class AdminModulesControllerCore extends AdminController
|
|||||||
// If error during module installation, no redirection
|
// If error during module installation, no redirection
|
||||||
$html_error = $this->generateHtmlMessage($module_errors);
|
$html_error = $this->generateHtmlMessage($module_errors);
|
||||||
$this->errors[] = sprintf(Tools::displayError('The following module(s) were not installed properly: %s'), $html_error);
|
$this->errors[] = sprintf(Tools::displayError('The following module(s) were not installed properly: %s'), $html_error);
|
||||||
|
$this->context->smarty->assign('error_module', 'true');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($return)
|
if ($return)
|
||||||
|
|||||||
Reference in New Issue
Block a user