MDL-46372 core_event: Backport event trigger from MDL-45641

While backporting MDL-45641, event trigger was missed
on editadavnced page.