mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-04 16:12:39 +01:00
Fixed sql error where column names were used instead of sql column names
This commit is contained in:
@@ -596,7 +596,7 @@ abstract class CommonDocGenerator
|
||||
{
|
||||
$columns = "";
|
||||
|
||||
foreach ($extralabels as $key)
|
||||
foreach ($extralabels as $key => $label)
|
||||
{
|
||||
$columns .= "$key, ";
|
||||
}
|
||||
@@ -610,7 +610,7 @@ abstract class CommonDocGenerator
|
||||
{
|
||||
$resql = $this->db->fetch_object($resql);
|
||||
|
||||
foreach ($extralabels as $key)
|
||||
foreach ($extralabels as $key => $label)
|
||||
{
|
||||
$resarray['line_product_supplier_'.$key] = $resql->{$key};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user