From dd8d521d91b1f73bcb897cb9f41fd942f1f7188e Mon Sep 17 00:00:00 2001 From: stronk7 Date: Thu, 24 Apr 2003 16:38:49 +0000 Subject: [PATCH] Changed to show the hidden assignments dimmed (bug #364) --- mod/assignment/index.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mod/assignment/index.php b/mod/assignment/index.php index 167082dae4..94b8e98681 100644 --- a/mod/assignment/index.php +++ b/mod/assignment/index.php @@ -56,7 +56,13 @@ $submitted = get_string("no"); } $due = userdate($assignment->timedue); - $link = "coursemodule\">$assignment->name"; + if (!$assignment->visible) { + //Show dimmed if the mod is hidden + $link = "coursemodule\">$assignment->name"; + } else { + //Show normal if the mod is visible + $link = "coursemodule\">$assignment->name"; + } if ($assignment->section) { $section = "$assignment->section"; } else { -- 2.39.5