diff --git a/library/Director/Objects/SyncRule.php b/library/Director/Objects/SyncRule.php index 9443def7..658ec06b 100644 --- a/library/Director/Objects/SyncRule.php +++ b/library/Director/Objects/SyncRule.php @@ -152,9 +152,9 @@ class SyncRule extends DbObject $this->last_error_message = null; } catch (Exception $e) { -throw $e; $this->sync_state = 'failing'; $this->last_error_message = $e->getMessage(); + // TODO: Store last error details / trace? } if ($this->hasBeenModified()) { @@ -164,6 +164,11 @@ throw $e; return $hadChanges; } + public function getExpectedModifications() + { + return $this->sync()->getExpectedModifications(); + } + public function applyChanges() { return $this->checkForChanges(true);