From 4c1643855813e87ec1a39d4438908bbb268b41e1 Mon Sep 17 00:00:00 2001 From: Mathias Kahl Date: Fri, 20 Oct 2023 14:29:36 +0200 Subject: [PATCH] PM-43087 added comment about deployment_id --- CHANGES.md | 2 +- mod_form.php | 6 ++++-- version.php | 4 ++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index bced700..16333a2 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,4 +1,4 @@ -### v1.0.23 (Build - 2023102002) +### v1.0.23 (Build - 2023102003) * Send plugin version number to Kialo. * Fix help center link. diff --git a/mod_form.php b/mod_form.php index 55a6a73..9176798 100644 --- a/mod_form.php +++ b/mod_form.php @@ -41,8 +41,10 @@ class mod_kialo_mod_form extends moodleform_mod { /** - * Generates a random deployment id and stores it in the session. This is used on Kialo's side - * to identify the activity for which a discussion was selected. + * In LTI the deployment ID identifies an LTI tool definition or installation. Moodle sends + * the same ID for all activities that are based on the same LTI external tool definition. + * We always send 1 for the plugin because there can only be one Kialo plugin installed which + * always has the same configuration. * @return string */ private function get_deployment_id(): string { diff --git a/version.php b/version.php index 5707cb7..e3c5199 100644 --- a/version.php +++ b/version.php @@ -28,8 +28,8 @@ $plugin->component = 'mod_kialo'; // See https://moodledev.io/docs/apis/commonfiles/version.php. -$plugin->version = 2023102002; // Must be incremented for each new release! -$plugin->release = '1.0.23-beta2'; // Semantic version. +$plugin->version = 2023102003; // Must be incremented for each new release! +$plugin->release = '1.0.23-beta3'; // Semantic version. // Officially we require PHP 7.4. The first Moodle version that requires this as a minimum is Moodle 4.1. // But technically this plugin also runs on older Moodle versions, as long as they run on PHP 7.4,