Skip to content

Commit

Permalink
Fixed issue #7629: Fatal error on unexpected key/data when using RPC …
Browse files Browse the repository at this point in the history
…function add_response
  • Loading branch information
c-schmitz committed Mar 2, 2013
1 parent 74ede07 commit fca41d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions application/controllers/admin/remotecontrol.php
Expand Up @@ -2254,6 +2254,8 @@ public function add_response($sSessionKey, $iSurveyID, $aResponseData)

Survey_dynamic::sid($iSurveyID);
$survey_dynamic = new Survey_dynamic;
$aBasicDestinationFields=$survey_dynamic->tableSchema->columnNames;
$aResponseData=array_intersect_key($aResponseData, array_flip($aBasicDestinationFields));
$result_id = $survey_dynamic->insertRecords($aResponseData);

if ($result_id)
Expand Down

0 comments on commit fca41d2

Please sign in to comment.