diff --git a/htdocs/accountancy/class/accountingaccount.class.php b/htdocs/accountancy/class/accountingaccount.class.php index 160383ce5c2..6405a55c689 100644 --- a/htdocs/accountancy/class/accountingaccount.class.php +++ b/htdocs/accountancy/class/accountingaccount.class.php @@ -734,7 +734,7 @@ class AccountingAccount extends CommonObject * @param FactureLigne|SupplierInvoiceLine $factureDet Facture Det * @param array $accountingAccount Array of Accounting account * @param string $type Customer / Supplier - * @return array|int Accounting accounts suggested or < 0 if technical error. + * @return array|int Array of accounting accounts suggested or < 0 if technical error. * 'suggestedaccountingaccountbydefaultfor'=>Will be used for the label to show on tooltip for account by default on any product * 'suggestedaccountingaccountfor'=>Is the account suggested for this product */ @@ -941,5 +941,7 @@ class AccountingAccount extends CommonObject return $hookmanager->resArray; } } + + return -1; } } diff --git a/htdocs/adherents/list.php b/htdocs/adherents/list.php index 52ef9109f9c..014448a5a95 100644 --- a/htdocs/adherents/list.php +++ b/htdocs/adherents/list.php @@ -143,9 +143,6 @@ $fieldstosearchall = array( 'd.note_public'=>'NotePublic', 'd.note_private'=>'NotePrivate', ); -if ($db->type == 'pgsql') { - unset($fieldstosearchall['d.rowid']); -} $arrayfields = array( 'd.ref'=>array('label'=>"Ref", 'checked'=>1),