FIX wrong url

This commit is contained in:
Regis Houssin 2019-03-14 17:24:42 +01:00
parent f43f3e0038
commit a40cba194f

View File

@ -446,11 +446,11 @@ $menus[$r++]=array('title'=>$langs->trans("FreeZone"),
$menus[$r++]=array('title'=>$langs->trans("Customer"), $menus[$r++]=array('title'=>$langs->trans("Customer"),
'action'=>'Customer();'); 'action'=>'Customer();');
$menus[$r++]=array('title'=>$langs->trans("BackOffice"), $menus[$r++]=array('title'=>$langs->trans("BackOffice"),
'action'=>'window.open(\''.DOL_URL_ROOT.'\', \'backoffice\');'); 'action'=>'window.open(\''.(empty(DOL_URL_ROOT)?'/':DOL_URL_ROOT).'\', \'_self\');');
$menus[$r++]=array('title'=>$langs->trans("ValidateBill"), $menus[$r++]=array('title'=>$langs->trans("ValidateBill"),
'action'=>'CloseBill();'); 'action'=>'CloseBill();');
$menus[$r++]=array('title'=>$langs->trans("Logout"), $menus[$r++]=array('title'=>$langs->trans("Logout"),
'action'=>'window.location.href=\''.DOL_URL_ROOT.'/user/logout.php\';'); 'action'=>'window.location.href=\''.(empty(DOL_URL_ROOT)?'/':DOL_URL_ROOT).'user/logout.php\';');
//BAR RESTAURANT specified menu //BAR RESTAURANT specified menu
if($conf->global->TAKEPOS_BAR_RESTAURANT){ if($conf->global->TAKEPOS_BAR_RESTAURANT){