MDL-34841 error importing questions with long names.
authorTim Hunt <T.J.Hunt@open.ac.uk>
Tue, 11 Sep 2012 14:04:00 +0000 (15:04 +0100)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Wed, 12 Sep 2012 16:38:40 +0000 (17:38 +0100)
commit5df0a6b47e246ce0a5de46bfe3fdf4d6974a2242
treee46177a64324a30486ac7276e1b0ee27c8d745e2
parent7413ce9896042b028a85cb5bf59bc75554ca2084
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