Fix: Rename of fields

This commit is contained in:
Laurent Destailleur 2013-03-09 16:37:50 +01:00
parent 418eeef8b4
commit 2c95b55682
2 changed files with 10 additions and 4 deletions

View File

@ -22,6 +22,9 @@ For users:
a subscription" (foundation module).
- New: Add link to check professional id for india.
For translators:
- Update language files.
For developers:
- System of menu managers has been rewritten to reduce code to do same things.
- An external module can force its theme.
@ -39,10 +42,13 @@ For developers:
- New: Type of fields are received by export format handlers
- New: when adding an action, we can define a free code to tag it for a specific need.
For translators:
- Update language files.
WARNING: If you used external modules, some of them may need to be upgraded due to:
- fields of classes were renamed to be normalized (nom, prenom, cp, ville, adresse were
renamed into lastname, firstname, zip, town, address).
- if module use hook pdf_writelinedesc, module may have to add return 1 at end of
function to keep same behaviour.
***** ChangeLog for 3.3.1 compared to 3.3 *****

View File

@ -498,7 +498,7 @@ class Societe extends CommonObject
$sql .= ",fk_departement = '" . (! empty($this->state_id)?$this->state_id:'0') ."'";
$sql .= ",fk_pays = '" . (! empty($this->country_id)?$this->country_id:'0') ."'";
$sql .= ",tel = ".(! empty($this->phone)?"'".$this->db->escape($this->phone)."'":"null");
$sql .= ",phone = ".(! empty($this->phone)?"'".$this->db->escape($this->phone)."'":"null");
$sql .= ",fax = ".(! empty($this->fax)?"'".$this->db->escape($this->fax)."'":"null");
$sql .= ",email = ".(! empty($this->email)?"'".$this->db->escape($this->email)."'":"null");
$sql .= ",url = ".(! empty($this->url)?"'".$this->db->escape($this->url)."'":"null");