diff --git a/question/format/gift/format.php b/question/format/gift/format.php index 0eb0b17a42f..74131fcf0c2 100755 --- a/question/format/gift/format.php +++ b/question/format/gift/format.php @@ -209,6 +209,8 @@ class qformat_gift extends qformat_default { $question->name = $question->questiontext; } + // ensure name is not longer than 250 characters + $question->name = shorten_text( $question->name, 250 ); // determine QUESTION TYPE $question->qtype = NULL;