Update adherent.class.php

This commit is contained in:
Laurent Destailleur 2019-05-02 12:40:34 +02:00 committed by GitHub
parent f33b7fc744
commit 590c6fb91f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1268,7 +1268,7 @@ class Adherent extends CommonObject
$this->id = $obj->rowid;
$this->ref_ext = $obj->ref_ext;
$this->civility_id = $obj->civility_code;
$this->civility_id = $obj->civility_code; // Bad. Kept for backard compatibility
$this->civility_code = $obj->civility_code;
$this->civility = $obj->civility_code?($langs->trans("Civility".$obj->civility_code) != ("Civility".$obj->civility_code) ? $langs->trans("Civility".$obj->civility_code) : $obj->civility_code):'';