From c1caabb5170071f20936b361c10f30188082f233 Mon Sep 17 00:00:00 2001 From: Myriam Delaruelle <myriam.delaruelle@univ-lorraine.fr> Date: Tue, 29 Oct 2024 09:59:39 +0100 Subject: [PATCH] fix database character limit --- amd/build/suivi-table.js | 8 +++++++- db/install.xml | 2 +- db/upgrade.php | 5 ----- templates/suivi-table.mustache | 1 + version.php | 2 +- 5 files changed, 10 insertions(+), 8 deletions(-) diff --git a/amd/build/suivi-table.js b/amd/build/suivi-table.js index e43d9b4..01c415c 100644 --- a/amd/build/suivi-table.js +++ b/amd/build/suivi-table.js @@ -38,6 +38,7 @@ define(['jquery', 'core/ajax', 'core/templates', 'core/str'], checkSelectActions(); }) } + }, //Si l'option de détails au clic est activée, on register l'événement du clic registerDetailsClick:function(){ @@ -79,7 +80,9 @@ define(['jquery', 'core/ajax', 'core/templates', 'core/str'], }); }) - } + }, + + } @@ -117,4 +120,7 @@ define(['jquery', 'core/ajax', 'core/templates', 'core/str'], + + + }); diff --git a/db/install.xml b/db/install.xml index c56ff55..4f2f417 100644 --- a/db/install.xml +++ b/db/install.xml @@ -7,7 +7,7 @@ <TABLE NAME="format_iena_options" COMMENT="Manage activity tracking table options"> <FIELDS> <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="true"/> - <FIELD NAME="optionname" TYPE="char" LENGTH="100" NOTNULL="true" SEQUENCE="false"/> + <FIELD NAME="optionname" TYPE="char" LENGTH="20" NOTNULL="true" SEQUENCE="false"/> <FIELD NAME="optionvalue" TYPE="int" LENGTH="1" NOTNULL="false" SEQUENCE="false"/> <FIELD NAME="courseid" TYPE="int" LENGTH="8" NOTNULL="true" SEQUENCE="false"/> <FIELD NAME="userid" TYPE="int" LENGTH="8" NOTNULL="true" SEQUENCE="false"/> diff --git a/db/upgrade.php b/db/upgrade.php index 30f726e..a4ec75c 100644 --- a/db/upgrade.php +++ b/db/upgrade.php @@ -94,7 +94,6 @@ function xmldb_format_iena_upgrade($oldversion) { upgrade_plugin_savepoint(true, 2021070600, 'format', 'iena'); } if ($oldversion < 2024101505) { - error_log("on passe dans l'ancienne version"); // Define field id to be added to format_iena. $table2 = new xmldb_table('format_iena_options'); $table2->add_field('id', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, XMLDB_SEQUENCE, null, null); @@ -109,12 +108,8 @@ function xmldb_format_iena_upgrade($oldversion) { // Conditionally launch add field id. if (!$dbman->table_exists($table2)) { - error_log("on ajoute la table"); $dbman->create_table($table2); } - else{ - error_log("la table existe"); - } // Iena savepoint reached. diff --git a/templates/suivi-table.mustache b/templates/suivi-table.mustache index 58e09a6..314f9ab 100644 --- a/templates/suivi-table.mustache +++ b/templates/suivi-table.mustache @@ -2,6 +2,7 @@ <div class="table-wrapper"> <table id="suivi"> + <thead> <tr id="modules"> diff --git a/version.php b/version.php index 103b91d..4469c20 100644 --- a/version.php +++ b/version.php @@ -27,7 +27,7 @@ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2024101504; +$plugin->version = 2024101505; $plugin->requires = 2014111000; $plugin->component = 'format_iena'; $plugin->release = "1.0"; -- GitLab