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'), ]);
}
}
......
<div class="bs-callout {{ needHumanMerge ? 'bs-callout-warning' : 'bs-callout-success' }} bulk-duplicate">
<h4>{{ automaticMerge ? "Fusion automatique" : "Doublons potentiels détectés" }}</h4>
<h4>{{ automaticMerge ? "Fusion automatique" : "Doublons potentiels détectés" }}</h4>
{% for duplicate in duplicates %}
<li>
<a class="duplicate-name" href="{{ duplicate.showUrlFromController(controller)}}" target="_blank"><b>
<li>
<a class="duplicate-name" href="{{ duplicate.showUrlFromController(router)}}" target="_blank"><b>
{{ duplicate.name }}
{% if duplicate.sourceKey %}<i> ({{ duplicate.sourceKey }})</i>{% endif %}
</b></a>
{% if automaticMerge %}
{% if duplicate.status == '-6' %}
<span class="label label-default">Doublon Supprimé</span>
......
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