Skip to content
Browse files

MDL-38474 repository: Cannot edit a repository instance

  • Loading branch information...
1 parent e42861d commit 71ac66ed7fb50d00a537d658d07e6a6ee848d4a2 @FMCorz FMCorz committed Mar 15, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 repository/manage_instances.php
View
2 repository/manage_instances.php
@@ -96,7 +96,7 @@
}
/// 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);

0 comments on commit 71ac66e

Please sign in to comment.
Something went wrong with that request. Please try again.