Skip to content

Commit 99e3db2

Browse files
committed
Merge branch '2.x' into pr/laravel-shift/94
2 parents 84d46fb + b343211 commit 99e3db2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Services/FileMakerConnection.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,16 @@ public function getRecords(FMBaseBuilder $query)
344344
if ($query->portal !== null) {
345345
$queryParams['portal'] = $query->portal;
346346
}
347+
if (isset($query->limitPortals) && count($query->limitPortals) > 0) {
348+
foreach ($query->limitPortals as $portalArray) {
349+
$queryParams['_limit.' . urlencode($portalArray['portalName'])] = $portalArray['limit'];
350+
}
351+
}
352+
if (isset($query->offsetPortals) && count($query->offsetPortals) > 0) {
353+
foreach ($query->offsetPortals as $portalArray) {
354+
$queryParams['_offset.' . urlencode($portalArray['portalName'])] = $portalArray['offset'];
355+
}
356+
}
347357

348358
$response = $this->makeRequest('get', $url, $queryParams);
349359

0 commit comments

Comments
 (0)