Fix: Some regression after renaming state and lastname.

This commit is contained in:
Laurent Destailleur 2013-03-08 02:49:42 +01:00
parent c86f3ef4b4
commit 1e5c56642c
2 changed files with 4 additions and 4 deletions

View File

@ -140,7 +140,7 @@ if (empty($reshook))
$object->zip = $_POST["zipcode"];
$object->town = $_POST["town"];
$object->country_id = $_POST["country_id"];
$object->state_id = $_POST["departement_id"];
$object->state_id = $_POST["state_id"];
$object->email = $_POST["email"];
$object->phone_pro = $_POST["phone_pro"];
$object->phone_perso = $_POST["phone_perso"];
@ -239,7 +239,7 @@ if (empty($reshook))
$object->address = $_POST["address"];
$object->zip = $_POST["zipcode"];
$object->town = $_POST["town"];
$object->state_id = $_POST["departement_id"];
$object->state_id = $_POST["state_id"];
$object->country_id = $_POST["country_id"];
$object->email = $_POST["email"];
@ -889,7 +889,7 @@ else
print '<tr><td>'.$langs->trans("Country").'</td><td colspan="3">';
$img=picto_from_langcode($object->country_code);
if ($img) print $img.' ';
print $object->country_id;
print $object->country;
print '</td></tr>';
// State

View File

@ -87,7 +87,7 @@ class box_contacts extends ModeleBoxes
$datec=$db->jdate($objp->datec);
$datem=$db->jdate($objp->tms);
$contactstatic->name=$objp->name;
$contactstatic->lastname=$objp->lastname;
$contactstatic->firstname=$objp->firstname;
$contactstatic->civilite_id=$objp->civilite;