Skip to content

Commit

Permalink
MDL-39422 course: prevent module names longer 255 chars
Browse files Browse the repository at this point in the history
To prevent ugly DB errors.
  • Loading branch information
danpoltawski committed Apr 30, 2013
1 parent cf5a329 commit 4fb3df3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion course/yui/toolboxes/toolboxes.js
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,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 />')
Expand Down

0 comments on commit 4fb3df3

Please sign in to comment.