Minor - flint fixes

pull/3285/head
Julio Montoya 5 years ago
parent 9c43fba632
commit 1fe57a4d12
  1. 13
      main/survey/survey.lib.php
  2. 1
      main/survey/survey.php

@ -684,7 +684,8 @@ class SurveyManager
}
/**
* Copy given survey to a new (optional) given survey ID
* Copy given survey to a new (optional) given survey ID.
*
* @param int $survey_id
* @param int $new_survey_id
* @param int $targetCourseId
@ -1496,7 +1497,9 @@ class SurveyManager
* @param int $survey_id the id of the survey
* @param int $question_id the id of the question
* @param bool $shared
*
* @return mixed False on error, true if the question could be deleted
*
* @todo also delete the answers to this question
*
* @author Patrick Cool <patrick.cool@UGent.be>, Ghent University
@ -1527,6 +1530,7 @@ class SurveyManager
}
// Deleting the options of the question of the survey
self::delete_survey_question_option($survey_id, $question_id, $shared);
return true;
}
@ -2252,8 +2256,10 @@ class SurveyManager
/**
* Copy/duplicate one question (into the same survey).
* Note: Relies on the question iid to find all necessary info.
* @param int $questionId
* @return int The new question's iid, or 0 on error
*
* @param int $questionId
*
* @return int The new question's iid, or 0 on error
*/
public static function copyQuestion($questionId)
{
@ -2328,6 +2334,7 @@ class SurveyManager
return $insertId;
}
/**
* @param array $surveyData
*

@ -138,7 +138,6 @@ if (!empty($action)) {
exit;
}
$htmlHeadXtra[] = '<script>'.api_get_language_translate_html().'</script>';
// Displaying the header

Loading…
Cancel
Save