by Danilo Nieto.
Greetings to all
The problem is in the code, in the mod/assing/lib.php file in the mod_assign_core_calendar_get_event_action_string function the file that contains the ASSIGN_EVENT_TYPE_DUE variable must be called, therefore two lines of code must be added before the switch:
global $CFG;
require_once($CFG->dirroot . '/mod/assign/locallib.php');
