Skip to content

Commit

Permalink
Merge pull request #305 from gabrieljenik/patch-16
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 0b7df6b + b77fdb7 commit 7f1c2e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/helpers/remotecontrol/remotecontrol_handle.php
Expand Up @@ -1748,7 +1748,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 @@ -1873,7 +1873,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 7f1c2e8

Please sign in to comment.