Skip to content

Commit

Permalink
Merge pull request #120 from pedropuppim/master
Browse files Browse the repository at this point in the history
fix issue #119
  • Loading branch information
Alex authored Feb 9, 2019
2 parents 688f67d + ef5a780 commit e110155
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Model/Behavior/AuditableBehavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,9 @@ public function afterSave(Model $Model, $created, $options = array()) {
),
);
} else {
if (Hash::check($this->_getOriginalDataForModel($Model), $property)
if ((Hash::check($this->_getOriginalDataForModel($Model), $property)
&& Hash::get($this->_getOriginalDataForModel($Model), $property) != $value
) {
) || (Hash::get($this->_getOriginalDataForModel($Model), $property) == NULl && $value != NULL and $value!="")) {
// If the property exists in the original _and_ the
// value is different, store it.
$delta = array(
Expand Down

0 comments on commit e110155

Please sign in to comment.