Skip to content
Snippets Groups Projects
Commit 0823ede7 authored by Myriam Delaruelle's avatar Myriam Delaruelle
Browse files

Fix date de séance réinitialisée quand on cache/montre une section depuis la...

Fix date de séance réinitialisée quand on cache/montre une section depuis la page d'accueil du cours
parent 1f71e53d
No related branches found
No related tags found
No related merge requests found
......@@ -131,7 +131,6 @@ class format_iena extends format_topics {
global $PAGE;
$elements = parent::create_edit_form_elements($mform, $forsection);
if ($forsection) {
$mform->removeElement('presence', false);
$mform->removeElement('daterendu', false);
......@@ -258,13 +257,13 @@ class format_iena extends format_topics {
*/
public function update_section_format_options($data) {
global $DB;
$objectsection = new stdClass();
$objectsection->id = $data["id"];
$sectionconfig = $this->get_format_options($objectsection);
// If a date was set but we want to remove it.
if (!isset($data['daterenducheck']) && !isset($data['daterenducheck2'])) {
if ((!isset($data['daterenducheck']) && !isset($data['daterenducheck2'])) && (isset($data['daterendu']))) {
if (array_key_exists('daterendu', $sectionconfig) && !empty($sectionconfig['daterendu'])) {
$data['daterendu'] = null;
} else {
......
/*style 4*/
/* injecter ça dans le renderer au lieu de le faire ici
afin que ça n'impacte pas le reste de la plateforme */
......@@ -956,6 +956,7 @@ tbody th{
font-family: FontAwesome; width: 100%; display: inline-block;text-align: center;
color: white;
font-size: large;
font-weight: 900;
}
.iena-icon-distance::after{
......@@ -963,6 +964,8 @@ tbody th{
font-family: FontAwesome; width: 100%; display: inline-block;text-align: center;
color: white;
font-size: large;
font-weight: 950;
}
.iena-caption-sections > .iena-caption-icons, .iena-caption-sections > .iena-caption-icons > * {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment