Skip to content
Browse files

MDL-39422 course: prevent module names longer 255 chars

To prevent ugly DB errors.
  • Loading branch information...
1 parent 5e00b9a commit 6b8f82e412bd5caf30fa80620e77e4107f8baf67 @danpoltawski danpoltawski committed Apr 30, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 course/yui/toolboxes/toolboxes.js
View
3 course/yui/toolboxes/toolboxes.js
@@ -509,7 +509,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 />')

0 comments on commit 6b8f82e

Please sign in to comment.
Something went wrong with that request. Please try again.