Minor - format code, remove error_log

pull/2858/head
Julio Montoya 7 years ago
parent 14c4be77d5
commit 0f4d89d1b5
  1. 1
      main/exercise/exercise.php
  2. 24
      main/inc/lib/formvalidator/Element/DateTimeRangePicker.php
  3. 1
      main/survey/create_new_survey.php
  4. 1
      main/survey/edit_meeting.php
  5. 3
      main/survey/survey.lib.php

@ -826,7 +826,6 @@ if (!empty($exerciseList)) {
}
$actions .= $settings;
// Exercise results
$resultsLink = '<a href="exercise_report.php?'.api_get_cidreq().'&exerciseId='.$row['id'].'">'.
Display::return_icon('test_results.png', get_lang('Results'), '', ICON_SIZE_SMALL).'</a>';

@ -170,6 +170,18 @@ class DateTimeRangePicker extends DateRangePicker
];
}
/**
* @param string $value
*/
public function setValue($value)
{
$this->updateAttributes(
[
'value' => $value,
]
);
}
/**
* Get the necessary javascript for this datepicker.
*
@ -246,16 +258,4 @@ class DateTimeRangePicker extends DateRangePicker
return $js;
}
/**
* @param string $value
*/
public function setValue($value)
{
$this->updateAttributes(
[
'value' => $value
]
);
}
}

@ -343,7 +343,6 @@ $form->setDefaults($defaults);
// The validation or display
if ($form->validate()) {
// Exporting the values
$values = $form->getSubmitValues();
// Storing the survey

@ -79,7 +79,6 @@ $form->addRule(
'lte'
);
$form->addHtmlEditor('survey_introduction', get_lang('Description'), false);
$form->setRequired($text);

@ -508,7 +508,7 @@ class SurveyManager
$return['id'] = $values['survey_id'];
}
$survey_id = intval($return['id']);
$survey_id = (int) $return['id'];
// Gradebook
$gradebook_option = false;
@ -1478,7 +1478,6 @@ class SurveyManager
survey_id='".$survey_id."' AND
question_id='".$question_id."'";
Database::query($sql);
error_log($sql);
// Deleting the options of the question of the survey
self::delete_survey_question_option($survey_id, $question_id, $shared);

Loading…
Cancel
Save