Skip to content

Commit

Permalink
Version 1.2.1 with update_date_modified
Browse files Browse the repository at this point in the history
Emmanuel Dyan committed May 27, 2016
1 parent 44fe530 commit ee12208
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Changelog
=========
1.2.1
-----
* Added "update_date_modified" in bean in case we want to force the date_modified

1.2.0
-----
4 changes: 4 additions & 0 deletions src/Bean.php
Original file line number Diff line number Diff line change
@@ -457,6 +457,10 @@ public function updateBeanFields(\SugarBean $sugarBean, array $fields)
continue;
}

if ($field === 'date_modified') {
$sugarBean->update_date_modified = false;
}

$sugarBean->$field = $value;
$this->getLogger()->debug($this->logPrefix . "Saving $field, value has changed");
$changedValues++;

0 comments on commit ee12208

Please sign in to comment.