Details
Description
I've just realised there's quite a serious race condition for how repeat events are handled in the calendar. I thought the repeatid column just pointed to the id of the original event.
But, no:
if ($form->repeat) {
$fetch = get_record_sql('SELECT 1, MAX(repeatid) AS repeatid FROM '.$CFG->prefix.'event');
$form->repeatid = empty($fetch) ? 1 : $fetch->repeatid + 1;
}
cvs:/calendar/edit.php
From (penny at catalyst.net.nz) Thursday, 29 June 2006, 07:12 AM:
adding martinl to cc list
From Luke Hudson (lingo at paradise.net.nz) Friday, 28 July 2006, 05:36 AM:
The attached patch solves this problem using the following method:
When a discussion is moved to a new forum, a skeleton discussion is left behind with the same title, but with (Moved) appended to it. The discussion will contain only one post, with the text:
This discussion has been moved to here, in the forum (new location)
The user can click either the 'here' or the name of the new forum to go the the relevant places.
From Luke Hudson (lingo at paradise.net.nz) Friday, 28 July 2006, 05:37 AM:
Oh, bother. I've put this in the wrong place
Please excuse me, this attachemnt and message refer to MDL-4874