Fixed sql error where column names were used instead of sql column names
This commit is contained in:
parent
a53f7ff9c9
commit
16b69a069e
@ -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};
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user