From 97a166e40b6360d71c8541e2d0330d4f38ca1c45 Mon Sep 17 00:00:00 2001 From: Carsten Schmitz Date: Fri, 1 Mar 2013 14:42:21 +0100 Subject: [PATCH] Fixed issue #7629: Fatal error on unexpected key/data when using RPC function add_response --- application/controllers/admin/remotecontrol.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/application/controllers/admin/remotecontrol.php b/application/controllers/admin/remotecontrol.php index 8b55a17e105..03b4cb5a216 100644 --- a/application/controllers/admin/remotecontrol.php +++ b/application/controllers/admin/remotecontrol.php @@ -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)