Skip to content

Commit

Permalink
Fixed issue #17875: list_participants API call ignoring the iStart pa…
Browse files Browse the repository at this point in the history
…rameter

Bugfix 17875: API: list_participants ignoring the iStart parameter

https://bugs.limesurvey.org/view.php?id=17875#c68236
  • Loading branch information
rouuuge committed Feb 8, 2022
1 parent 14990d8 commit dbbf604
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/helpers/remotecontrol/remotecontrol_handle.php
Expand Up @@ -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. */
Expand Down

0 comments on commit dbbf604

Please sign in to comment.