MDL-23349 fixing delete attempts regressions and actually making it work because it is borked in 1.9 too
MDL-23349 fixing delete attempts regressions and actually making it work because it is borked in 1.9 too

dilawar/moodle