admin MDL-23259 fixed deleting of user profile fields
authorAndrew Davis <andrew@affinitysoftware.net>
Thu, 15 Jul 2010 02:58:46 +0000 (02:58 +0000)
committerAndrew Davis <andrew@affinitysoftware.net>
Thu, 15 Jul 2010 02:58:46 +0000 (02:58 +0000)
user/profile/index.php

index 5bd8b31..f5035e7 100644 (file)
@@ -55,7 +55,7 @@ switch ($action) {
         echo $OUTPUT->heading(get_string('profiledeletecategory', 'admin'));
 
         $formcontinue = new single_button(new moodle_url($redirect, $optionsyes), get_string('yes'), 'post');
-        $formcancel = new single_button($redirect, get_string('no'), 'get');
+        $formcancel   = new single_button(new moodle_url($redirect), get_string('no'), 'get');
         echo $OUTPUT->confirm(get_string('profileconfirmcategorydeletion', 'admin', $fieldcount), $formcontinue, $formcancel);
         echo $OUTPUT->footer();
         die;