From 48b358ba5673cfa4e50ffbe1c7ecd765268c483c Mon Sep 17 00:00:00 2001 From: thepurpleblob Date: Tue, 15 Aug 2006 14:38:38 +0000 Subject: [PATCH] Bug #6231. Question name truncated to 250 characters. --- question/format/gift/format.php | 2 ++ 1 file changed, 2 insertions(+) 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;