1
0
mirror of https://github.com/moodle/moodle.git synced 2025-05-07 16:56:15 +02:00

MDL-13953 The dropdown was not populated using the same methods as elsewhere in Moodle.

This commit is contained in:
nicolasconnault 2008-03-18 16:00:13 +00:00
parent 28f640403e
commit e8b709f14b

@ -243,7 +243,8 @@ function selectItemInCheckboxByName(formId, checkName, checked ) {
echo '<label for="menurestore_restorecatto">'.get_string ('category').'</label>';
echo "</td>";
echo "<td>";
choose_from_menu(get_creatable_categories(), "restore_restorecatto", $course_header->category->id, "");
make_categories_list($categories, $parents);
choose_from_menu($categories, "restore_restorecatto", $course_header->category->id, "");
echo "</td>";
echo "</tr>";
@ -756,4 +757,4 @@ function restore_is_samerole($testroleid, $rolefromxml) {
}
return true;
}
?>
?>