Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.5.4, 2.6.1, 2.6.9, 2.6.10, 2.6.11, 2.7, 2.7.6, 2.7.7, 2.7.8, 2.7.9, 2.8.4, 2.8.5, 2.8.6, 2.8.7, 2.9, 2.9.1
-
MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE
-
MOODLE_29_STABLE, MOODLE_30_STABLE
-
MDL-46049-master -
-
Easy
-
Description
When a chat activity is set to repeat an event is created for the first scheduled chat but no further events are created in the calendar.
Steps to reproduce:
- Add a chat activity to a course
- In 'Chat sessions' add a 'Next chat time'
- Set 'Repeat/publish session times' to 'At the same time every week'
- Check the course calendar, you should see an event for the first scheduled chat
- When the event time has passed and the cron has run check the course calendar again
What I expected:
- The chat event in the course calendar to have moved to the same time a week later
What happens:
- The chat event stays where it is
To fix:
In mod/chat/lib.php chat_update_chat_times function where setting the $params variable for the event (line 652 in version 2015051100) change...
$params = array('chattime'=>$chat->chattime, 'chatid'=>$chatid);
|
...to...
$params = array('chattime'=>$chat->chattime, 'chatid'=>$chat->id);
|