Merge pull request #8558 from atm-greg/Fix_contact_birthday_update

FIX #8259 can't update contact birthday with REST API
This commit is contained in:
Laurent Destailleur 2018-04-11 12:53:41 +02:00 committed by GitHub
commit c958a4f865
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -311,6 +311,7 @@ class Contact extends CommonObject
$sql .= ", email='".$this->db->escape($this->email)."'";
$sql .= ", skype='".$this->db->escape($this->skype)."'";
$sql .= ", photo='".$this->db->escape($this->photo)."'";
$sql .= ", birthday='".$this->db->idate($this->birthday)."'";
$sql .= ", note_private = ".(isset($this->note_private)?"'".$this->db->escape($this->note_private)."'":"null");
$sql .= ", note_public = ".(isset($this->note_public)?"'".$this->db->escape($this->note_public)."'":"null");
$sql .= ", phone = ".(isset($this->phone_pro)?"'".$this->db->escape($this->phone_pro)."'":"null");