From 37cce5d8607eea1fe2149aed8fe0561e624d41d1 Mon Sep 17 00:00:00 2001 From: Grand Philippe Date: Sat, 23 Feb 2013 14:31:59 +0100 Subject: [PATCH] fix: change name with lastname --- htdocs/adherents/fiche.php | 4 ++-- htdocs/core/boxes/box_members.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/adherents/fiche.php b/htdocs/adherents/fiche.php index 3b1102fe31d..1915f260f69 100644 --- a/htdocs/adherents/fiche.php +++ b/htdocs/adherents/fiche.php @@ -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 diff --git a/htdocs/core/boxes/box_members.php b/htdocs/core/boxes/box_members.php index 1692abffe0a..c24a87b1e24 100755 --- a/htdocs/core/boxes/box_members.php +++ b/htdocs/core/boxes/box_members.php @@ -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";