mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-60352 calendar: Do not select original event for collection
This commit is contained in:
parent
23ab0d7788
commit
1df40a2dce
@ -122,12 +122,16 @@ class repeat_event_collection implements event_collection_interface {
|
||||
* @param int $start Start offset.
|
||||
* @return \stdClass[]
|
||||
*/
|
||||
protected function load_event_records($start = 1) {
|
||||
protected function load_event_records($start = 0) {
|
||||
global $DB;
|
||||
while ($records = $DB->get_records(
|
||||
while ($records = $DB->get_records_select(
|
||||
'event',
|
||||
['repeatid' => $this->parentid],
|
||||
'',
|
||||
'id <> :parentid AND repeatid = :repeatid',
|
||||
[
|
||||
'parentid' => $this->parentid,
|
||||
'repeatid' => $this->parentid,
|
||||
],
|
||||
'id ASC',
|
||||
'*',
|
||||
$start,
|
||||
self::DB_QUERY_LIMIT
|
||||
|
Loading…
x
Reference in New Issue
Block a user