Skip to content
Snippets Groups Projects
Commit cf9fc2e3 authored by Regis Houssin's avatar Regis Houssin
Browse files

Fix: missing fields value

parent e71fc285
Branches
Tags
No related merge requests found
......@@ -44,7 +44,9 @@ class Contact extends CommonObject
var $id;
var $civilite_id;
var $name;
var $nom;
var $firstname;
var $prenom;
var $address;
var $cp; // TODO deprecated
var $zip;
......@@ -436,7 +438,9 @@ class Contact extends CommonObject
function fetch($id, $user=0)
{
global $langs;
$langs->load("companies");
$sql = "SELECT c.rowid, c.fk_soc, c.civilite as civilite_id, c.name, c.firstname,";
$sql.= " c.address, c.cp, c.ville,";
$sql.= " c.fk_pays,";
......
......@@ -314,7 +314,9 @@ if (! empty($objcanvas->template_dir))
else if ($action == 'edit')
{
$objcanvas->fetch($id); // Reload object
$objcanvas->assign_post(); // Assign POST data
if (! empty($_POST)) {
$objcanvas->assign_post(); // Assign POST data
}
$objcanvas->assign_values($action); // Set value for templates
$objcanvas->display_canvas($action); // Show template
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment