Skip to content

Commit

Permalink
Merge pull request #709 from edegaudenzi/develop
Browse files Browse the repository at this point in the history
Whitelisted the GUID property when using toStringArray($dirty_only = true)
  • Loading branch information
calcinai authored Mar 31, 2020
2 parents fe1a72c + ad89439 commit b062322
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/XeroPHP/Remote/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ public function toStringArray($dirty_only = false)
}

//if we only want the dirty props, stop here
if ($dirty_only && ! isset($this->_dirty[$property])) {
if ($dirty_only && ! isset($this->_dirty[$property]) && $property !== static::getGUIDProperty()) {
continue;
}

Expand Down

0 comments on commit b062322

Please sign in to comment.