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 1, 2013
1 parent b7372de commit 97a166e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions application/controllers/admin/remotecontrol.php
Expand Up @@ -2256,6 +2256,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($aResponseData,$aBasicDestinationFields);
$result_id = $survey_dynamic->insertRecords($aResponseData);

if ($result_id)
Expand Down

0 comments on commit 97a166e

Please sign in to comment.