Fix: Reload of a menu handler need name of menu handler

This commit is contained in:
Laurent Destailleur 2011-11-28 10:34:52 +01:00
parent f451728b52
commit f821880399
2 changed files with 2 additions and 2 deletions

View File

@ -114,7 +114,7 @@ function run_sql($sqlfile,$silent=1,$entity='',$usesavepoint=1,$handler='')
{ {
global $db, $conf, $langs, $user; global $db, $conf, $langs, $user;
dol_syslog("Admin.lib::run_sql run sql file ".$sqlfile, LOG_DEBUG); dol_syslog("Admin.lib::run_sql run sql file ".$sqlfile." silent=".$silent." entity=".$entity." usesavepoint=".$usesavepoint." handler=".$handler, LOG_DEBUG);
$ok=0; $ok=0;
$error=0; $error=0;

View File

@ -3491,7 +3491,7 @@ function migrate_reload_menu($db,$langs,$conf,$versionto)
$file='init_menu_'.$key.'.sql'; $file='init_menu_'.$key.'.sql';
if (file_exists($dir.$file)) if (file_exists($dir.$file))
{ {
$result=run_sql($dir.$file,1,'',1); $result=run_sql($dir.$file,1,'',1,$key);
} }
print '</td></tr>'; print '</td></tr>';