diff options
| author | fisharebest <fisharebest@gmail.com> | 2013-07-27 06:30:57 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2013-07-27 06:30:57 +0000 |
| commit | c8fde73a3a229de93c643b05df691c758844a69d (patch) | |
| tree | 9dd7369b6125c9481de554b3ea8a4ee64a589d4b /modules_v3 | |
| parent | 47a3723c70ff234c0df4138884f3f76a221a4ed2 (diff) | |
| download | webtrees-c8fde73a3a229de93c643b05df691c758844a69d.tar.gz webtrees-c8fde73a3a229de93c643b05df691c758844a69d.tar.bz2 webtrees-c8fde73a3a229de93c643b05df691c758844a69d.zip | |
#1203581 - SVN-15328- Batch Update-S/R function broken
Diffstat (limited to 'modules_v3')
| -rw-r--r-- | modules_v3/batch_update/admin_batch_update.php | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/modules_v3/batch_update/admin_batch_update.php b/modules_v3/batch_update/admin_batch_update.php index 0d2a063507..f7d98fbd12 100644 --- a/modules_v3/batch_update/admin_batch_update.php +++ b/modules_v3/batch_update/admin_batch_update.php @@ -364,20 +364,8 @@ class base_plugin { // Default previewer for plugins with no custom preview. function getActionPreview(WT_GedcomRecord $record) { - $gedcom = "0 @" . $record->getXref() . "@ " . $record::RECORD_TYPE; - foreach ($record->getFacts() as $fact) { - if ($fact->isNew()) { - $gedcom .= "\n" . self::decorateInsertedText($fact->getGedcom()); - } elseif ($fact->isOld()) { - $gedcom .= "\n" . self::decorateDeletedText($fact->getGedcom()); - } else { - $gedcom .= "\n" . $fact->getGedcom(); - } - } - return '<pre>'.self::createEditLinks($gedcom).'</pre>'; - - $old_lines=preg_split('/[\n]+/', $gedrec); - $new_lines=preg_split('/[\n]+/', $this->updateRecord($xref, $gedrec)); + $old_lines=preg_split('/[\n]+/', $record->getGedcom()); + $new_lines=preg_split('/[\n]+/', $this->updateRecord($record->getXref(), $record->getGedcom())); // Find matching lines using longest-common-subsequence algorithm. $lcs=self::LCS($old_lines, $new_lines, 0, count($old_lines)-1, 0, count($new_lines)-1); |
