Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreRambaud committed Oct 15, 2018
1 parent 06ef660 commit 4688178
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,9 @@ public function buildForm(FormBuilderInterface $builder, array $options)
$event->setData($data);
}

/**
* Remove duplicates to prevent SQL errors.
*/
if (isset($data['features'])) {
$ids = [];
foreach ($data['features'] as $idx => $feature) {
Expand Down

0 comments on commit 4688178

Please sign in to comment.