--- editcategory_form.php.old 2008-05-20 15:57:04.643444112 +0200 +++ editcategory_form.php 2008-05-20 16:01:35.578255760 +0200 @@ -11,6 +11,7 @@ $options = array(get_string('top')); $parents = array(); make_categories_list($options, $parents); + $options = remove_self_and_children_categories($options, $parents, $this->_customdata['id']); $mform->addElement('select', 'parent', get_string('parentcategory'), $options); $mform->addElement('text', 'name', get_string('categoryname'), array('size'=>'30'));