From 2946894701a6e381d69bd88273bc0edca25e527e Mon Sep 17 00:00:00 2001 From: Shamim Rezaie Date: Mon, 26 Apr 2021 12:00:29 +1000 Subject: [PATCH] MDL-71163 mod_data: Remove duplicate info for open and close time --- mod/data/view.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/mod/data/view.php b/mod/data/view.php index 1e6aa3fe0be..a50662d5721 100644 --- a/mod/data/view.php +++ b/mod/data/view.php @@ -362,13 +362,9 @@ } // If data activity closed dont let students in. + // No need to display warnings because activity dates are displayed at the top of the page. list($showactivity, $warnings) = data_get_time_availability_status($data, $canmanageentries); - if (!$showactivity) { - $reason = current(array_keys($warnings)); - echo $OUTPUT->notification(get_string($reason, 'data', $warnings[$reason])); - } - if ($showactivity) { // Print the tabs if ($record or $mode == 'single') {