SyncRule: Allow disabling purge

This commit is contained in:
Markus Frosch 2016-07-22 13:55:32 +02:00 committed by Thomas Gelf
parent eab8b5c9ba
commit 73b1863e1a
1 changed files with 1 additions and 1 deletions

View File

@ -235,7 +235,7 @@ class SyncRule extends DbObject
// TODO: Allow for more // TODO: Allow for more
protected function loadConfiguredPurgeStrategy() protected function loadConfiguredPurgeStrategy()
{ {
if ($this->purge_existing) { if ($this->purge_existing === 'y') {
return PurgeStrategy::load('ImportRunBased', $this); return PurgeStrategy::load('ImportRunBased', $this);
} else { } else {
return PurgeStrategy::load('PurgeNothing', $this); return PurgeStrategy::load('PurgeNothing', $this);