]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-19016 xhtml strict fix
authorskodak <skodak>
Thu, 30 Apr 2009 09:14:55 +0000 (09:14 +0000)
committerskodak <skodak>
Thu, 30 Apr 2009 09:14:55 +0000 (09:14 +0000)
grade/edit/tree/category_form.php

index fbfaa196c05252f728231aa4caaf05eeed977be0..173f0f79291d5b45d7bff37a49f4016ac44122da 100644 (file)
@@ -363,6 +363,13 @@ class edit_category_form extends moodleform {
                     }
                 }
             }
+
+        } else {
+            // adding new category
+
+            if ($mform->elementExists('currentparentaggregation')) {
+                $mform->removeElement('currentparentaggregation');
+            }
         }