Unverified Commit ed614196 authored by Sebastian Castro's avatar Sebastian Castro
Browse files

Fix templating batch detect duplicates

parent d96a049b
......@@ -70,7 +70,7 @@ class DuplicatesActionsController extends BulkActionsAbstractController
'automaticMerge' => count($perfectMatches) > 0,
'needHumanMerge' => count($otherDuplicates) > 0,
'mergedId' => $element->getId(),
'controller' => $this, ]);
'router' => $this->get('router'), ]);
}
}
......
......@@ -4,7 +4,7 @@
{% for duplicate in duplicates %}
<li>
<a class="duplicate-name" href="{{ duplicate.showUrlFromController(controller)}}" target="_blank"><b>
<a class="duplicate-name" href="{{ duplicate.showUrlFromController(router)}}" target="_blank"><b>
{{ duplicate.name }}
{% if duplicate.sourceKey %}<i> ({{ duplicate.sourceKey }})</i>{% endif %}
</b></a>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment