From 1d568254bf81609be40cdbb1a79c0c7badc9a84a Mon Sep 17 00:00:00 2001 From: Leon Stringer Date: Thu, 6 Oct 2022 21:01:32 +0100 Subject: [PATCH] 27 Fix The 'name' value must be set in other With this plugin's "Enable plugin" setting set to No, editing an activity's settings resulted in the error "Coding error detected, it must be fixed by a programmer: The 'name' value must be set in other.". --- lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib.php b/lib.php index 9255dd5..2d30ae4 100644 --- a/lib.php +++ b/lib.php @@ -198,7 +198,7 @@ function plagiarism_pchkorg_coursemodule_edit_post_actions($data, $course) $config = $pchkorgconfigmodel->get_system_config('pchkorg_use'); if ('1' != $config) { - return; + return $data; } $fields = array(