Permalink
Browse files

Merge branch 'MDL-38356-m24' of git://github.com/andrewnicols/moodle …

…into MOODLE_24_STABLE
  • Loading branch information...
2 parents 484dcc9 + 057f509 commit aebfad51a0704b474e7ac210332b4afc5129df06 @nebgor nebgor committed Mar 12, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/yui/formchangechecker/formchangechecker.js
@@ -21,6 +21,11 @@ YUI.add('moodle-core-formchangechecker',
initializer : function(config) {
var formid = 'form#' + this.get('formid');
+ if (!currentform) {
+ // If the form was not found, then we can't check for changes.
+ return;
+ }
+
// Add change events to the form elements
var currentform = Y.one(formid);
currentform.delegate('change', M.core_formchangechecker.set_form_changed, 'input', this);

0 comments on commit aebfad5

Please sign in to comment.