From 71ac66ed7fb50d00a537d658d07e6a6ee848d4a2 Mon Sep 17 00:00:00 2001 From: Frederic Massart Date: Fri, 15 Mar 2013 13:45:31 +0800 Subject: [PATCH] MDL-38474 repository: Cannot edit a repository instance --- repository/manage_instances.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repository/manage_instances.php b/repository/manage_instances.php index cda4b3cd2d2..778c8a75f15 100644 --- 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 -if (!empty($new)){ +if (!empty($new) && empty($edit)){ $type = repository::get_type_by_typename($new); } else if (!empty($edit)){ $instance = repository::get_instance($edit); -- 2.39.2