Skip to content

Commit

Permalink
Fixed the issue of Mosp import in a blank analysis.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruslan Baidan committed Sep 28, 2021
1 parent d13eaec commit 08cad63
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Service/ObjectService.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,10 @@ public function getAnrObjects($page, $limit, $order, $filter, $filterAnd, $model
foreach ($objects as $o) { // on en prend que les objets déjà liés (composants)
$value[] = $o->getUuid();
}
if (!empty($value)) {
$filterAnd['uuid'] = ['op' => 'IN', 'value' => $value];
if (empty($value)) {
return [];
}
$filterAnd['uuid'] = ['op' => 'IN', 'value' => $value];
}

/** @var MonarcObjectTable $monarcObjectTable */
Expand Down

0 comments on commit 08cad63

Please sign in to comment.