-
Improvement
-
Resolution: Fixed
-
Minor
-
3.0
-
MOODLE_30_STABLE
-
MOODLE_30_STABLE
-
MDL-51781_master -
Currently we only set the value to \core\event\base::NOT_MAPPED if the event explicitly states that the value can not be mapped. However, there may be situations where we can not find the mapping (item has been deleted) so it returns '0' on the call to get_mappingid(), we should also use the \core\event\base::NOT_MAPPED as it doesn't matter whether the event says it can not be mapped, or it actually was not mapped, the result is the same.
Note - Eloy gave a +1 to this, which is equal to +100 from normal developers.