From 1c4d953cef3a3fadc5a382ec62031ff6ea76154b Mon Sep 17 00:00:00 2001 From: Rajesh Taneja Date: Tue, 22 Oct 2013 11:09:34 +0800 Subject: [PATCH] MDL-31405 Assignment: removed type in time shift reset status Assignment reset shifts time for all assignments and not specific to assignment type, hence removed type string from reset status --- mod/assignment/lib.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/mod/assignment/lib.php b/mod/assignment/lib.php index 94567765356..499a93215d7 100644 --- a/mod/assignment/lib.php +++ b/mod/assignment/lib.php @@ -3882,18 +3882,12 @@ function assignment_reset_userdata($data) { // Updating dates - shift may be negative too. if ($data->timeshift) { - $plugintypestrkey = 'type'.$this->type; - if (get_string_manager()->string_exists($plugintypestrkey, 'assignment')) { - $typestr = get_string_manager()->get_string($plugintypestrkey, 'assignment'); - } else { - $typestr = get_string_manager()->get_string($plugintypestrkey, 'assignment_'.$this->type); - } shift_course_mod_dates('assignment', array('timedue', 'timeavailable'), $data->timeshift, $data->courseid); $status[] = array('component' => get_string('modulenameplural', 'assignment'), - 'item' => get_string('datechanged').': '.$typestr, + 'item' => get_string('datechanged'), 'error' => false); }