[-] BO : Fix scroll when errors occurred on modules

This commit is contained in:
fSerny
2012-05-17 00:07:03 +00:00
parent 8d64e384b4
commit 3ea14ea72b
2 changed files with 2 additions and 1 deletions
@@ -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)