Skip to content
Snippets Groups Projects
Commit 63a7b506 authored by Sergio Sanchis's avatar Sergio Sanchis
Browse files

Fix: Error if exist extrafield

parent 24420edd
Branches
Tags
No related merge requests found
...@@ -767,6 +767,11 @@ if (! $sall) ...@@ -767,6 +767,11 @@ if (! $sall)
$sql.= ' f.datec, f.tms,'; $sql.= ' f.datec, f.tms,';
$sql.= ' s.rowid, s.nom, s.town, s.zip, s.fk_pays, s.code_client, s.client, typent.code'; $sql.= ' s.rowid, s.nom, s.town, s.zip, s.fk_pays, s.code_client, s.client, typent.code';
$sql.= ' ,state.code_departement, state.nom'; $sql.= ' ,state.code_departement, state.nom';
foreach ($extrafields->attribute_label as $key => $val) //prevent error with sql_mode=only_full_group_by
{
$sql.=($extrafields->attribute_type[$key] != 'separate' ? ",ef.".$key : '');
}
} }
else else
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment