FIX Issue 32460 db prefix module builder

This commit is contained in:
Quentin VIAL--GOUTEYRON
2025-01-15 08:42:14 +01:00
parent 9ee4a03e7f
commit 01be602fb1
10 changed files with 42 additions and 42 deletions

View File

@@ -478,7 +478,7 @@ foreach ($myTmpObjects as $myTmpObjectKey => $myTmpObjectArray) {
// Load array def with activated templates
$def = array();
$sql = "SELECT nom";
$sql .= " FROM ".MAIN_DB_PREFIX."document_model";
$sql .= " FROM ".$db->prefix()."document_model";
$sql .= " WHERE type = '".$db->escape($type)."'";
$sql .= " AND entity = ".$conf->entity;
$resql = $db->query($sql);