From f923f7aefebbf6ebb4115de85b3c919ead4da297 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20S=CC=8Ckoda?= Date: Wed, 26 Dec 2012 17:28:09 +0100 Subject: [PATCH] MDL-xxxx show appropriate instance status on user enrolments page --- enrol/locallib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enrol/locallib.php b/enrol/locallib.php index 2ee9a7bb63c..03c83ab17ec 100644 --- a/enrol/locallib.php +++ b/enrol/locallib.php @@ -926,7 +926,7 @@ class course_enrolment_manager { $details['enrolments'][$ue->id] = array( 'text' => $ue->enrolmentinstancename, 'period' => $period, - 'dimmed' => ($periodoutside || $ue->status != ENROL_USER_ACTIVE), + 'dimmed' => ($periodoutside or $ue->status != ENROL_USER_ACTIVE or $ue->enrolmentinstance->status != ENROL_INSTANCE_ENABLED), 'actions' => $ue->enrolmentplugin->get_user_enrolment_actions($manager, $ue) ); }