mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-08 10:38:15 +01:00
Fix: use entity in auguria menu
This commit is contained in:
@@ -217,6 +217,15 @@ function run_sql($sqlfile,$silent=1)
|
||||
$newsql=str_replace($from,$to,$newsql);
|
||||
dol_syslog('Admin.lib::run_sql New Request '.($i+1).' sql='.$newsql, LOG_DEBUG);
|
||||
}
|
||||
|
||||
// Replace __ENTITY__ with current entity id
|
||||
while (eregi('(__ENTITY__)',$newsql,$reg))
|
||||
{
|
||||
$from = $reg[1];
|
||||
$to = $conf->entity;
|
||||
$newsql = str_replace($from,$to,$newsql);
|
||||
dol_syslog('Admin.lib::run_sql New Request '.($i+1).' sql='.$newsql, LOG_DEBUG);
|
||||
}
|
||||
|
||||
$result=$db->query($newsql);
|
||||
if ($result)
|
||||
|
||||
Reference in New Issue
Block a user