MDL-39422 course: prevent module names longer 255 chars

To prevent ugly DB errors.
This commit is contained in:
Dan Poltawski
2013-04-30 17:42:02 +01:00
parent c6be1389b7
commit da7b1ecb12
+2 -1
View File
@@ -510,7 +510,8 @@ YUI.add('moodle-course-toolboxes', function(Y) {
'name' : 'title',
'value' : titletext,
'autocomplete' : 'off',
'aria-describedby' : 'id_editinstructions'
'aria-describedby' : 'id_editinstructions',
'maxLength' : '255'
})
.addClass('titleeditor');
var editform = Y.Node.create('<form />')