Problem/Motivation
The poll module title is limited to 128 characters, even though the database schema allows for 255 characters. This is due to the fact that poll_form() redefines the edit form without specifying the maxlength of the title element. The default length of a textfield in the form API is 128.
from poll_form():
<?php
$form['title'] = array(
'#type'=> 'textfield',
'#title'=> check_plain($type->title_label),
'#required'=> TRUE,
'#default_value'=> $node->title,
'#weight'=> -5,
);
?>
node_content_form() forces the length to 255:
<?php
$form['title'] = array(
'#type'=> 'textfield',
'#title'=> check_plain($type->title_label),
'#required'=> TRUE,
'#default_value'=> $node->title,
'#maxlength'=> 255,
'#weight'=> -5,
);
?>
poll.module was removed from D8, so filing this against D7 directly.
Proposed resolution
Force length of poll.module title form element to 255.
Remaining tasks
patch
User interface changes
none
API changes
none