Skip to content

Commit

Permalink
Changed maximum length for short free text to 4000 chars in order to …
Browse files Browse the repository at this point in the history
…maintain compatibility.
  • Loading branch information
seanrife committed Jan 22, 2013
1 parent fac93fb commit c972dc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/views/admin/dataentry/content_view.php
Original file line number Diff line number Diff line change
Expand Up @@ -392,11 +392,11 @@ function updateJSON<?php echo $fieldname; ?>() {
$suffix = '';
}

if (intval(trim($qidattributes['maximum_chars'])) > 0 && intval(trim($qidattributes['maximum_chars'])) < 65534) { // Limit to 65535 to maintain compatibility w/database limitations
if (intval(trim($qidattributes['maximum_chars'])) > 0 && intval(trim($qidattributes['maximum_chars'])) < 4000) { // Limit to 4000 to maintain compatibility
$maximum_chars = intval(trim($qidattributes['maximum_chars']));
$maxlength = "maxlength='{$maximum_chars}' ";
} else {
$maxlength = "maxlength='65534' "; // Default to 65534 chars if not set within limits
$maxlength = "maxlength='4000' "; // Default to 4000 chars if not set within limits
}

if (trim($qidattributes['text_input_width']) != '') {
Expand Down

0 comments on commit c972dc3

Please sign in to comment.