fix: change name with lastname

This commit is contained in:
Grand Philippe 2013-02-23 14:31:59 +01:00
parent 5d8dea788c
commit 37cce5d860
2 changed files with 3 additions and 3 deletions

View File

@ -253,7 +253,7 @@ if ($action == 'update' && ! $_POST["cancel"] && $user->rights->adherent->creer)
$object->civilite_id = trim($_POST["civilite_id"]);
$object->prenom = trim($_POST["prenom"]); // deprecated
$object->firstname = trim($_POST["prenom"]);
$object->lastname = trim($_POST["nom"]);
$object->lastname = trim($_POST["lastname"]);
$object->login = trim($_POST["login"]);
$object->pass = trim($_POST["pass"]);
@ -434,7 +434,7 @@ if ($action == 'add' && $user->rights->adherent->creer)
$object->civilite_id = $civilite_id;
$object->prenom = $prenom; // deprecated
$object->firstname = $prenom;
$object->lastname = $nom;
$object->lastname = $lastname;
$object->societe = $societe;
$object->address = $address;
$object->cp = $zip; // deprecated

View File

@ -78,7 +78,7 @@ class box_members extends ModeleBoxes
if ($user->rights->societe->lire)
{
$sql = "SELECT a.rowid, a.nom as lastname, a.prenom as firstname, a.societe as company, a.fk_soc,";
$sql = "SELECT a.rowid, a.lastname, a.prenom as firstname, a.societe as company, a.fk_soc,";
$sql.= " a.datec, a.tms, a.statut as status, a.datefin as date_end_subscription,";
$sql.= " t.cotisation";
$sql.= " FROM ".MAIN_DB_PREFIX."adherent as a, ".MAIN_DB_PREFIX."adherent_type as t";