mirror of
https://github.com/moodle/moodle.git
synced 2025-05-10 18:27:20 +02:00
MDL-15402: if a type has no multiple instances and cannot configure an instance, so do not display the list of instance for this type.
This commit is contained in:
parent
0a6221f94d
commit
47dafef79a
@ -92,7 +92,10 @@ if (!empty($edit) || !empty($new)) {
|
||||
|
||||
//display instances list and creation form
|
||||
if ($edit){
|
||||
repository_display_instances_list(get_context_instance(CONTEXT_SYSTEM), true, $edit);
|
||||
if (repository_static_function($edit,"has_instance_config")
|
||||
|| repository_static_function($edit,"has_multiple_instances")){
|
||||
repository_display_instances_list(get_context_instance(CONTEXT_SYSTEM), true, $edit);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user