MDL-65788 tool_policy: Move accept_policy JS call into an array
authorMathew May <mathewm@hotmail.co.nz>
Thu, 18 Jul 2019 02:47:18 +0000 (10:47 +0800)
committerMathew May <mathewm@hotmail.co.nz>
Thu, 18 Jul 2019 02:47:18 +0000 (10:47 +0800)
admin/tool/policy/classes/form/accept_policy.php

index 20e358f..d385b2b 100644 (file)
@@ -111,7 +111,7 @@ class accept_policy extends \moodleform {
             }
         }
 
-        $PAGE->requires->js_call_amd('tool_policy/policyactions', 'init', '[data-action="view"]');
+        $PAGE->requires->js_call_amd('tool_policy/policyactions', 'init', ['[data-action="view"]']);
     }
 
     /**