MDL-34841 error importing questions with long names.
commitcacb8fa08aa81effc22223feb89015a68cf74b48
authorTim Hunt <T.J.Hunt@open.ac.uk>
Tue, 11 Sep 2012 14:04:00 +0000 (11 15:04 +0100)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Tue, 11 Sep 2012 14:04:00 +0000 (11 15:04 +0100)
treeac90434bde14f099264162c6e6e03b184441d779
parent935c3d5ed2d03ac6e1b00f14c0b083ea1b9aada8
MDL-34841 error importing questions with long names.

The problem was with the non-UTF-8-safe way that a question name
was being constructed from the question text.

I have done a proper fix with methods in the base class to
carefully construct a question name that is reasonable, and
which will fit in the database column. Then I have changed all
importers to use the new methods.

I also remembered not to break the lesson in the process.
15 files changed:
mod/lesson/format.php
question/format.php
question/format/aiken/format.php
question/format/blackboard/format.php
question/format/blackboard_six/formatpool.php
question/format/blackboard_six/formatqti.php
question/format/examview/format.php
question/format/gift/format.php
question/format/learnwise/format.php
question/format/missingword/format.php
question/format/multianswer/format.php
question/format/multianswer/tests/multianswerformat_test.php
question/format/webct/format.php
question/format/xml/format.php
question/tests/importexport_test.php