Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Commit

Permalink
fix(Calendar Replication) add special treatment for event::exdate
Browse files Browse the repository at this point in the history
Change-Id: Ia1da1094fe9f98aa189fa283133760aaa695a833
Reviewed-on: http://gerrit.tine20.com/customers/15243
Reviewed-by: Philipp Schüle <p.schuele@metaways.de>
Tested-by: Jenkins CI (http://ci.tine20.com/) <tine20-jenkins@metaways.de>
  • Loading branch information
paulmhh committed Jan 13, 2020
1 parent 372dd73 commit a5337aa
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tine20/Tinebase/Record/Abstract.php
Expand Up @@ -1505,7 +1505,13 @@ public function applyDiff(Tinebase_Record_Diff $diff)
}
} else {
if (in_array($property, $this->_datetimeFields) && ! is_object($oldValue)) {
$oldValue = new Tinebase_DateTime($oldValue);
if (is_array($oldValue)) {
foreach ($oldValue as &$tmpVal) {
$tmpVal = new Tinebase_DateTime($tmpVal);
}
} else {
$oldValue = new Tinebase_DateTime($oldValue);
}
}
$this->$property = $oldValue;
}
Expand Down

0 comments on commit a5337aa

Please sign in to comment.