Moodle Assignment Editor showing HTML instead of GUI editor

Recently one of teachers noticed that some Assignments that had been copied between courses would show the assignment introduction as a plaint ext box with html markup visible.

I tracked this down to Moodle recording the wrong format for the intro. To fix all instances of this in the database I ran the following query:

UPDATE `mdl_assignment`
SET `introformat` = 1
WHERE `introformat` = 0 AND `intro` like '%<p%'

This updated the format for the 1400 or so assignments that had been copied and had this problem.

About James Rudd

Network Administrator at Sydney Boys High School
This entry was posted in Moodle. Bookmark the permalink.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.