SyncRule: Allow disabling purge
This commit is contained in:
parent
eab8b5c9ba
commit
73b1863e1a
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue