Skip to content
Snippets Groups Projects
Unverified Commit e12a101c authored by Sebastian Castro's avatar Sebastian Castro
Browse files

duplicates: reset only when detection starts

parent ed037a17
No related branches found
No related tags found
No related merge requests found
......@@ -21,11 +21,13 @@ class DuplicatesActionsController extends BulkActionsAbstractController
$this->batchSize = 2000;
$this->elementActionService = $elementActionService;
// reset previous detections
$dm->query('Element')->update()
->field('isDuplicateNode')->unsetField()->exists(true)
->field('potentialDuplicates')->unsetField()->exists(true)
->execute();
if (!$request->get('batchFromStep')) {
// reset previous detections
$dm->query('Element')->update()
->field('isDuplicateNode')->unsetField()->exists(true)
->field('potentialDuplicates')->unsetField()->exists(true)
->execute();
}
return $this->elementsBulkAction('detectDuplicates', $dm, $request, $session);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment