Skip to content
Snippets Groups Projects
Commit ac60dfa8 authored by Laurent Destailleur's avatar Laurent Destailleur Committed by GitHub
Browse files

Merge pull request #5873 from olsesacl/facture_list_sql_mode

FIX: Error show list invoice when sql_mode=only_full_group_by
parents cec792f1 63a7b506
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