Skip to content

Commit

Permalink
fix issue #119
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Puppim committed Feb 7, 2019
1 parent 688f67d commit ef5a780
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 ef5a780

Please sign in to comment.