Skip to content

Commit

Permalink
adding check for value.
Browse files Browse the repository at this point in the history
  • Loading branch information
padams committed Jan 25, 2022
1 parent c9d572a commit 98ac387
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions owa_entity.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,15 +209,17 @@ function set($name, $value, $filter = true, $mark_dirty = true ) {
if ( $filter && method_exists( $this, $method ) ) {

$value = $this->$method( $value );
}
}

$this->properties[$name]->setValue( $value );
if ( $value ) {

if ( $mark_dirty && $existing_value != $value ) {
$this->properties[$name]->setValue( $value );

$this->markDirty( $name, $value );
}

if ( $mark_dirty && $existing_value != $value ) {

$this->markDirty( $name, $value );
}
}
}
}

Expand Down

0 comments on commit 98ac387

Please sign in to comment.