Merge pull request #10840 from hregis/develop_takepos

FIX wrong url
This commit is contained in:
Laurent Destailleur 2019-03-14 19:26:16 +01:00 committed by GitHub
commit f865d1c378
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -446,11 +446,11 @@ $menus[$r++]=array('title'=>$langs->trans("FreeZone"),
$menus[$r++]=array('title'=>$langs->trans("Customer"),
'action'=>'Customer();');
$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"),
'action'=>'CloseBill();');
$menus[$r++]=array('title'=>$langs->trans("Logout"),
'action'=>'window.location.href=\''.DOL_URL_ROOT.'/user/logout.php\';');
'action'=>'window.location.href=\''.DOL_URL_ROOT.'/user/logout.php\';');
//BAR RESTAURANT specified menu
if($conf->global->TAKEPOS_BAR_RESTAURANT){