Skip to content

Commit cee5fdd

Browse files
Remove last index reset
1 parent a0b75d1 commit cee5fdd

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Database/Eloquent/FMEloquentBuilder.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,8 @@ public function paginate($perPage = null, $columns = ['*'], $pageName = 'page',
265265
/**
266266
* Compares a model's modified portal data and original portal data and returns portal data with only modified fields and recordIds
267267
*
268-
* @param $array1 array The modified portal data
269-
* @param $array2 array The model's original portal data
268+
* @param $array1 array The modified portal data
269+
* @param $array2 array The model's original portal data
270270
*/
271271
protected function getOnlyModifiedPortalFields($array1, $array2): array
272272
{
@@ -332,8 +332,6 @@ protected function callScope(callable $scope, array $parameters = [])
332332
$query->setFindRequestIndex(0);
333333

334334
$result = $scope(...$parameters) ?? $this;
335-
} else {
336-
$query->setFindRequestIndex(count($query->wheres) - 1);
337335
}
338336

339337
return $result;

0 commit comments

Comments
 (0)