Ignore:
Timestamp:
May 2, 2016, 12:09:23 PM (3 years ago)
Author:
jrpelegrina
Message:

Updated to moodle 3.0.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • moodle/trunk/fuentes/lib/classes/event/calendar_event_created.php

    r136 r1331  
    105105            throw new \coding_exception('The \'repeatid\' value must be set in other.');
    106106        }
    107         if (empty($this->other['name'])) {
     107        if (!isset($this->other['name'])) {
    108108            throw new \coding_exception('The \'name\' value must be set in other.');
    109109        }
     
    112112        }
    113113    }
     114
     115    public static function get_objectid_mapping() {
     116        return array('db' => 'event', 'restore' => 'event');
     117    }
     118
     119    public static function get_other_mapping() {
     120        $othermapped = array();
     121        $othermapped['repeatid'] = array('db' => 'event', 'restore' => 'event');
     122
     123        return $othermapped;
     124    }
    114125}
Note: See TracChangeset for help on using the changeset viewer.