MDL-15402: fix bug with rep type form not displayed during creation

This commit is contained in:
jerome
2008-09-19 09:56:53 +00:00
parent 1e97f196a4
commit 9885b864df
+8 -2
View File
@@ -91,8 +91,14 @@ if (!empty($edit) || !empty($new)) {
} else {
admin_externalpage_print_header();
print_heading(get_string('configplugin', 'repository_'.$plugin));
$typeoptionnames = repository_static_function($edit, 'get_type_option_names');
if (!empty($typeoptionnames)){
$displaysettingform = true;
if ($edit) {
$typeoptionnames = repository_static_function($edit, 'get_type_option_names');
if (empty($typeoptionnames)) {
$displaysettingform = false;
}
}
if ($displaysettingform){
print_simple_box_start();
$mform->display();
print_simple_box_end();