Skip to content

Commit

Permalink
Merge pull request #32371 from matthieu-michou-wattandsea/branch_dev_MM
Browse files Browse the repository at this point in the history
API REST : specify creation date for new contact, as for companies an…
  • Loading branch information
eldy authored Dec 19, 2024
2 parents 4222ac9 + 9213635 commit 21ca9e9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions htdocs/contact/class/contact.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,10 @@ public function create($user, $notrigger = 0)
$error = 0;
$now = dol_now();

if (empty($this->date_creation)) {
$this->date_creation = $now;
}

$this->db->begin();

// Clean parameters
Expand Down

0 comments on commit 21ca9e9

Please sign in to comment.