Skip to content

Commit

Permalink
fix(SFT-1683): usage in elements crashing when no freeform fields pre…
Browse files Browse the repository at this point in the history
…sent
  • Loading branch information
gustavs-gutmanis committed Jan 2, 2025
1 parent b7c26eb commit 52d3460
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ public function actionGet(int $id): Response
$this->_getCustomFieldElements($layout, $fieldUids);
}

if (empty($fieldUids)) {
return $this->asJson([]);
}

$conditions = ['or'];
foreach ($fieldUids as $uuid) {
if ('mysql' === $driver) {
Expand Down

0 comments on commit 52d3460

Please sign in to comment.