From dcb0f01f5839a0574201aaa0183fdb41545f4ee0 Mon Sep 17 00:00:00 2001 From: Davo Smith Date: Mon, 1 Jul 2019 09:10:22 +0100 Subject: [PATCH] MDL-62815 mod_lti: fix javascript error + bump version number --- mod/lti/mod_form.js | 4 ++++ mod/lti/version.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/mod/lti/mod_form.js b/mod/lti/mod_form.js index eb01bcb53e4..a14ac91a316 100644 --- a/mod/lti/mod_form.js +++ b/mod/lti/mod_form.js @@ -149,6 +149,10 @@ }, updateAutomaticToolMatch: function(field){ + if (!field) { + return; + } + var self = this; var toolurl = field; diff --git a/mod/lti/version.php b/mod/lti/version.php index 7921b8b6aa4..42ae63789d9 100644 --- a/mod/lti/version.php +++ b/mod/lti/version.php @@ -48,7 +48,7 @@ defined('MOODLE_INTERNAL') || die; -$plugin->version = 2019111800; // The current module version (Date: YYYYMMDDXX). +$plugin->version = 2020010800; // The current module version (Date: YYYYMMDDXX). $plugin->requires = 2019111200; // Requires this Moodle version. $plugin->component = 'mod_lti'; // Full name of the plugin (used for diagnostics). $plugin->cron = 0;