From c86cf0199722c03007f8576434e485b0badf12a6 Mon Sep 17 00:00:00 2001 From: spvickers Date: Fri, 27 Feb 2015 11:32:34 -0700 Subject: [PATCH] MDL-49159 mod_lti: Incorrect IDs in tools table The "_tools" suffix for the IDs of tabs in the tools settings table was being duplicated. --- mod/lti/settings.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mod/lti/settings.php b/mod/lti/settings.php index 952428c9651..89bfa6b79c5 100644 --- a/mod/lti/settings.php +++ b/mod/lti/settings.php @@ -43,6 +43,8 @@ * @author Jordi Piguillem * @author Nikolas Galanis * @author Chris Scribner + * @copyright 2015 Vital Source Technologies http://vitalsource.com + * @author Stephen Vickers * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ @@ -168,7 +170,7 @@ if ($ADMIN->fulltree) { new Y.YUI2.widget.TabView('lti_tabs'); var setupTools = function(id, sort){ - var lti_tools = Y.YUI2.util.Dom.get(id + '_tools'); + var lti_tools = Y.YUI2.util.Dom.get(id); if(lti_tools){ var dataSource = new Y.YUI2.util.DataSource(lti_tools);