Skip to content

Commit b0d73ad

Browse files
author
Michael Deck
committed
Fix calculation of whereIn when multiple conditions.
1 parent 6a047fd commit b0d73ad

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Database/Query/FMBaseBuilder.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,9 @@ protected function computeWhereIns()
474474
return;
475475
}
476476

477-
$this->wheres = Arr::crossJoin($this->wheres, ...$whereIns);
477+
$this->wheres = Arr::map(Arr::crossJoin($this->wheres, ...$whereIns), function($conditions) {
478+
return array_merge(...array_values($conditions));
479+
});
478480
}
479481

480482
/**

0 commit comments

Comments
 (0)