From 6b8f82e412bd5caf30fa80620e77e4107f8baf67 Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Tue, 30 Apr 2013 16:48:53 +0100 Subject: [PATCH] MDL-39422 course: prevent module names longer 255 chars To prevent ugly DB errors. --- course/yui/toolboxes/toolboxes.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/course/yui/toolboxes/toolboxes.js b/course/yui/toolboxes/toolboxes.js index dd83903db2f..18500d61656 100644 --- a/course/yui/toolboxes/toolboxes.js +++ b/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('
')