Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e42861d
)
MDL-38474 repository: Cannot edit a repository instance
author
Frederic Massart
<fred@moodle.com>
Fri, 15 Mar 2013 05:45:31 +0000
(13:45 +0800)
committer
Frederic Massart
<fred@moodle.com>
Fri, 15 Mar 2013 05:45:31 +0000
(13:45 +0800)
repository/manage_instances.php
patch
|
blob
|
blame
|
history
diff --git
a/repository/manage_instances.php
b/repository/manage_instances.php
index
cda4b3c
..
778c8a7
100644
(file)
--- a/
repository/manage_instances.php
+++ b/
repository/manage_instances.php
@@
-96,7
+96,7
@@
if ($context->contextlevel == CONTEXT_COURSE) {
}
/// Security: we cannot perform any action if the type is not visible or if the context has been disabled
}
/// Security: we cannot perform any action if the type is not visible or if the context has been disabled
-if (!empty($new)){
+if (!empty($new)
&& empty($edit)
){
$type = repository::get_type_by_typename($new);
} else if (!empty($edit)){
$instance = repository::get_instance($edit);
$type = repository::get_type_by_typename($new);
} else if (!empty($edit)){
$instance = repository::get_instance($edit);