-
Improvement
-
Resolution: Won't Do
-
Minor
-
None
-
2.8.6
-
MOODLE_28_STABLE
Hello
Detected Moodle 2.8.6+
When we upload (or create) a new theme and we named > 28 chars (8 + 20 chars + suffix and prefix chars) there are a bug:
name is too long. Limit is 28 chars
- The solution is a little change in moodle/lib/xmldb/xmldb.xsd. You should change line 13
and rewrite<xs:pattern value='[0-9a-z_]{1,X}'/>
X = number of characters accepted
- and moodle/lib/xmldb/xmldb_table.php. You should change line 47
and rewriteconst NAME_MAX_LENGTH = X;
X = number of characters accepted
In my development I have written X = 50, for example:
<xs:pattern value='[0-9a-z_]{1,50}'/>
|
const NAME_MAX_LENGTH = 50;
|
And it's ok!
In my opinion, may be, this parameter "X" It could be controlled through Moodle administration or be expanded.
I request the development for this parameter to be controlled through the administration panel in future versions.
Thanks
- has been marked as being related by
-
MDL-53495 Report the actual name length restriction for table names
-
- Closed
-