Skip to content

Commit

Permalink
Merge pull request #304 from gabrieljenik/patch-15
Browse files Browse the repository at this point in the history
New feature : Added extra fields returned for list_groups and list_questions API. (gabrieljenik)
  • Loading branch information
Shnoulle committed Apr 15, 2015
2 parents 515277b + 1dd2ecb commit 22c2092
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/helpers/remotecontrol/remotecontrol_handle.php
Expand Up @@ -1752,7 +1752,7 @@ public function list_groups($sSessionKey, $iSurveyID)

foreach ($oGroupList as $oGroup)
{
$aData[]= array('id'=>$oGroup->primaryKey,'group_name'=>$oGroup->attributes['group_name']);
$aData[]= array('id'=>$oGroup->primaryKey) + $oGroup->attributes;
}
return $aData;
}
Expand Down Expand Up @@ -1877,7 +1877,7 @@ public function list_questions($sSessionKey, $iSurveyID, $iGroupID=NULL, $sLangu

foreach ($aQuestionList as $oQuestion)
{
$aData[]= array('id'=>$oQuestion->primaryKey,'title'=>$oQuestion->attributes['title'],'type'=>$oQuestion->attributes['type'], 'question'=>$oQuestion->attributes['question']);
$aData[]= array('id'=>$oQuestion->primaryKey) + $oQuestion->attributes;
}
return $aData;
}
Expand Down

0 comments on commit 22c2092

Please sign in to comment.