When the question name is taken from the question text it is now cut off at 15 characters.
This commit is contained in:
@@ -60,7 +60,7 @@ class quiz_default_questiontype {
|
||||
}
|
||||
|
||||
if (empty($question->name)) {
|
||||
$question->name = strip_tags($question->questiontext);
|
||||
$question->name = substr(strip_tags($question->questiontext), 0, 15);
|
||||
if (empty($question->name)) {
|
||||
$question->name = '-';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user