Commit d59d116a authored by Sebastian Kummer's avatar Sebastian Kummer

Merge pull request #695 in ZP/z-push from...

Merge pull request #695 in ZP/z-push from bugfix/ZP-1411-unset-undefined-properties-for-tasks to develop

* commit '8f7f3045':
  ZP-1411 Unset undefined properties for tasks.
parents 7c8bbb43 8f7f3045
......@@ -65,7 +65,7 @@ abstract class SyncObject extends Streamer {
public function emptySupported($supportedFields) {
// Some devices do not send supported tag. In such a case remove all not set properties.
if (($supportedFields === false || !is_array($supportedFields) || (empty($supportedFields)))) {
if (defined('UNSET_UNDEFINED_PROPERTIES') && UNSET_UNDEFINED_PROPERTIES && ($this instanceof SyncContact || $this instanceof SyncAppointment)) {
if (defined('UNSET_UNDEFINED_PROPERTIES') && UNSET_UNDEFINED_PROPERTIES && ($this instanceof SyncContact || $this instanceof SyncAppointment || $this instanceof SyncTask)) {
ZLog::Write(LOGLEVEL_INFO, sprintf("%s->emptySupported(): no supported list available, emptying all not set parameters", get_class($this)));
$supportedFields = array_keys($this->mapping);
}
......@@ -96,7 +96,7 @@ abstract class SyncObject extends Streamer {
* @see SyncObject
* @param SyncObject $odo other SyncObject
* @param boolean $log flag to turn on logging
* @param boolean $strictTypeCompare to enforce type matching
* @param boolean $strictTypeCompare to enforce type matching
* @return boolean
*/
public function equals($odo, $log = false, $strictTypeCompare = false) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment