FIX #9316 Error when listing invoices

This commit is contained in:
Laurent Destailleur 2018-09-04 11:19:31 +02:00
parent e7d2bcc34c
commit 9042d341f0

View File

@ -510,7 +510,8 @@ if (! $sall)
$sql.= ' state.code_departement, state.nom,';
$sql.= ' country.code,';
$sql.= " p.rowid, p.ref, p.title";
if ($search_categ_cus) $sql .= ", cc.fk_categorie, cc.fk_soc";
// Add fields from extrafields
foreach ($extrafields->attribute_label as $key => $val) //prevent error with sql_mode=only_full_group_by
{
$sql.=($extrafields->attribute_type[$key] != 'separate' ? ",ef.".$key : '');