Skip to content

Commit

Permalink
Fixed issue: Timeline remote control not working
Browse files Browse the repository at this point in the history
Fixes the Remote Control Timeline function
  • Loading branch information
evently-nl committed Jan 20, 2017
1 parent 1806059 commit cf657e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/helpers/remotecontrol/remotecontrol_handle.php
Expand Up @@ -480,7 +480,7 @@ public function export_timeline($sSessionKey, $iSurveyID, $sType, $dStart, $dEnd
{
if (!$this->_checkSessionKey($sSessionKey)) return array('status' => 'Invalid session key');
if (!in_array($sType, array('day','hour'))) return array('status' => 'Invalid Period');
if (!hasSurveyPermission($iSurveyID, 'responses', 'read')) return array('status' => 'No permission');
if (!Permission::model()->hasSurveyPermission($iSurveyID, 'responses', 'read')) return array('status' => 'No permission');
$oSurvey=Survey::model()->findByPk($iSurveyID);
if (is_null($oSurvey)) return array('status' => 'Error: Invalid survey ID');
if (!tableExists('{{survey_' . $iSurveyID . '}}')) return array('status' => 'No available data');
Expand Down Expand Up @@ -1296,6 +1296,7 @@ public function import_question($sSessionKey, $iSurveyID,$iGroupID, $sImportData

libxml_disable_entity_loader($bOldEntityLoaderState); // Put back entity loader to its original state, to avoid contagion to other applications on the server


try
{
$oQuestion->save();
Expand Down

0 comments on commit cf657e7

Please sign in to comment.