From 0431cc0e16d9855b0adcc7b4612838f6407f462f Mon Sep 17 00:00:00 2001 From: =?utf8?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 e923c2ea2fc..2b4e0fccb3a 100644 --- a/enrol/locallib.php +++ b/enrol/locallib.php @@ -867,7 +867,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) ); } -- 2.43.0