2
0
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:
Regis Houssin
2024-07-27 19:51:25 +02:00
committed by GitHub
parent d062575204
commit 221bdc78f6

View File

@@ -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) {