diff options
| author | Greg Roach <fisharebest@webtrees.net> | 2019-02-05 09:38:12 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@webtrees.net> | 2019-02-05 11:49:21 +0000 |
| commit | 2adcbd9abb8c46fec6ee23c7f719f34dd6b5451d (patch) | |
| tree | 31b5740cb4fdc174371f614c39d4f08ce4dfabac /resources/views/edit/paste-fact-row.phtml | |
| parent | 8eaf87094d89aefab9b38d5ab9c97e56b054593b (diff) | |
| download | webtrees-2adcbd9abb8c46fec6ee23c7f719f34dd6b5451d.tar.gz webtrees-2adcbd9abb8c46fec6ee23c7f719f34dd6b5451d.tar.bz2 webtrees-2adcbd9abb8c46fec6ee23c7f719f34dd6b5451d.zip | |
Fix: #2159 - integrate clipboard support into modules
Diffstat (limited to 'resources/views/edit/paste-fact-row.phtml')
| -rw-r--r-- | resources/views/edit/paste-fact-row.phtml | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/resources/views/edit/paste-fact-row.phtml b/resources/views/edit/paste-fact-row.phtml index 091de2111e..5ff0c3a0a6 100644 --- a/resources/views/edit/paste-fact-row.phtml +++ b/resources/views/edit/paste-fact-row.phtml @@ -1,6 +1,6 @@ <?php use Fisharebest\Webtrees\I18N; ?> -<?php if (!empty($facts)) : ?> +<?php if ($facts->isNotEmpty()) : ?> <tr> <th scope="row"> <label for="paste-fact"> @@ -14,13 +14,15 @@ <?php foreach ($facts as $fact) : ?> <option value="<?= e($fact->id()) ?>"> <?= $fact->label() ?> - <?php if ($fact->value() !== '') : ?> + <?php if ($fact->target() !== null) : ?> + – <?= strip_tags($fact->target()->getFullName()) ?> + <?php elseif ($fact->value() !== '') : ?> – <?= e($fact->value()) ?> <?php endif ?> <?php if ($fact->date()->isOK()) : ?> – <?= $fact->date()->minimumDate()->format('%Y') ?> <?php endif ?> - <?php if (!$fact->place()->gedcomName() !== '') : ?> + <?php if ($fact->place()->gedcomName() !== '') : ?> – <?= $fact->place()->shortName() ?> <?php endif ?> </option> |
