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
No related branches found
No related tags found
No related merge requests found
......@@ -767,6 +767,11 @@ if (! $sall)
$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.= ' ,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
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment