forked from Wavyzz/dolibarr
FIX replace __ENTITY__ tag with id 1 (master entity) (#30478)
* FIX replace __ENTITY__ tag with id 1 (master entity) * FIX phan error
This commit is contained in:
@@ -536,6 +536,9 @@ if ($action == "set") {
|
||||
$buffer = preg_replace('/llx_/i', $dolibarr_main_db_prefix, $buffer);
|
||||
}
|
||||
|
||||
// Replace __ENTITY__ tag with 1 (master entity), this is only for dictionaries.
|
||||
$buffer = preg_replace('/__ENTITY__/i', '1', $buffer);
|
||||
|
||||
//dolibarr_install_syslog("step2: request: " . $buffer);
|
||||
$resql = $db->query($buffer, 1);
|
||||
if ($resql) {
|
||||
|
||||
Reference in New Issue
Block a user