diff options
| author | Greg Roach <fisharebest@gmail.com> | 2017-02-03 15:16:06 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2017-02-03 15:16:06 +0000 |
| commit | 4949de1ed306c7707c23f2fbb038ea3e01594fe9 (patch) | |
| tree | 90806eee1b3a52b6940bc036628dcae37d25f124 /app/Module | |
| parent | 7577aecd6925e461ab43f99cfd372eb40b265e64 (diff) | |
| download | webtrees-4949de1ed306c7707c23f2fbb038ea3e01594fe9.tar.gz webtrees-4949de1ed306c7707c23f2fbb038ea3e01594fe9.tar.bz2 webtrees-4949de1ed306c7707c23f2fbb038ea3e01594fe9.zip | |
Fix #1165 - update/keep CHAN
Diffstat (limited to 'app/Module')
| -rw-r--r-- | app/Module/BatchUpdateModule.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Module/BatchUpdateModule.php b/app/Module/BatchUpdateModule.php index 6a83719cab..24595cf717 100644 --- a/app/Module/BatchUpdateModule.php +++ b/app/Module/BatchUpdateModule.php @@ -131,7 +131,7 @@ class BatchUpdateModule extends AbstractModule implements ModuleConfigInterface $newrecord = $this->PLUGIN->updateRecord($this->xref, $record); if ($newrecord != $record) { if ($newrecord) { - GedcomRecord::getInstance($this->xref, $WT_TREE)->updateRecord($newrecord, $this->PLUGIN->chan); + GedcomRecord::getInstance($this->xref, $WT_TREE)->updateRecord($newrecord, !$this->PLUGIN->chan); } else { GedcomRecord::getInstance($this->xref, $WT_TREE)->deleteRecord(); } @@ -146,7 +146,7 @@ class BatchUpdateModule extends AbstractModule implements ModuleConfigInterface $newrecord = $this->PLUGIN->updateRecord($xref, $record); if ($newrecord != $record) { if ($newrecord) { - GedcomRecord::getInstance($xref, $WT_TREE)->updateRecord($newrecord, $this->PLUGIN->chan); + GedcomRecord::getInstance($xref, $WT_TREE)->updateRecord($newrecord, !$this->PLUGIN->chan); } else { GedcomRecord::getInstance($xref, $WT_TREE)->deleteRecord(); } |
