From dbbf6041d746882edeaa69777adba65ac7bfe63e Mon Sep 17 00:00:00 2001 From: rouuuge Date: Tue, 8 Feb 2022 16:15:18 +0100 Subject: [PATCH] Fixed issue #17875: list_participants API call ignoring the iStart parameter Bugfix 17875: API: list_participants ignoring the iStart parameter https://bugs.limesurvey.org/view.php?id=17875#c68236 --- application/helpers/remotecontrol/remotecontrol_handle.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/helpers/remotecontrol/remotecontrol_handle.php b/application/helpers/remotecontrol/remotecontrol_handle.php index c89f0fa4057..1781b671c1d 100644 --- a/application/helpers/remotecontrol/remotecontrol_handle.php +++ b/application/helpers/remotecontrol/remotecontrol_handle.php @@ -2184,12 +2184,12 @@ public function list_participants($sSessionKey, $iSurveyID, $iStart = 0, $iLimit $oCriteria = new CDbCriteria(); $oCriteria->order = 'tid'; $oCriteria->limit = $iLimit; + $oCriteria->compare('tid', '>=' . $iStart); $aAttributeValues = array(); if (count($aConditions) > 0) { $aConditionFields = array_flip(Token::model($iSurveyID)->getMetaData()->tableSchema->columnNames); - // NB: $valueOrTuple is either a value or tuple like [$operator, $value]. - $oCriteria->compare('tid', '>=' . $iStart); + // NB: $valueOrTuple is either a value or tuple like [$operator, $value]. foreach ($aConditions as $columnName => $valueOrTuple) { if (is_array($valueOrTuple)) { /** @var string[] List of operators allowed in query. */