https://tracker.moodle.org/browse/MDL-29004?focusedCommentId=228272&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-228272