Textarea attribute character limit
Permalink
Hello,
I have a textarea in a single page dashboard page. When I submit the page and set the textarea data into an attribute I get this error: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'ak_job_info' at row 1.
However if I go into composer and set the same text It works fine.
View
Controller
Any help would be great.
Thanks,
I have a textarea in a single page dashboard page. When I submit the page and set the textarea data into an attribute I get this error: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'ak_job_info' at row 1.
However if I go into composer and set the same text It works fine.
View
<?php $editor = Core::make('editor'); print $editor->outputStandardEditor('description', '<p>Enter description</p>' ); ?>
Controller
$desc = $this->post('description'); $entry->setAttribute('job_info', $desc);
Any help would be great.
Thanks,