Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The exposed filter for a string has a maximum of 128 characters, this should be unlimited since the value searching for might have a length up to an infinity number of characters (in theory offcourse :-) ).
The restriction can be removed by editing views/handlers/views_handler_filter_string.inc line 180:
$form['value'] = array(
'#type' => 'textfield',
'#title' => t('Value'),
'#size' => 30,
'#default_value' => $this->value,
);
Should be:
$form['value'] = array(
'#type' => 'textfield',
'#title' => t('Value'),
'#size' => 30,
'#default_value' => $this->value,
'#maxlength' => null,
);
Comment | File | Size | Author |
---|---|---|---|
#4 | views_62_fix.patch | 498 bytes | rv0 |
#2 | views.patch | 499 bytes | markwittens |
Comments
Comment #1
dawehnerCan you provide a patch for it?
Comment #2
markwittens CreditAttribution: markwittens commentedUploaded patch.
Comment #3
iamjon CreditAttribution: iamjon commentedChanging status.
Comment #4
rv0 CreditAttribution: rv0 commentednull should be NULL
did a quick edit of the patch file
Comment #5
dawehnerIt would be really helpful to document what this line means.
Comment #6
dawehnerThe rest of the patch looks fine, but i guess as 6.x-2.x is on a only critical bug-fixes status this will only land in 6.x-3.x and 7.x-3.x
Comment #7
rv0 CreditAttribution: rv0 commentedadditionally, i've got an exposed filter somewhere that takes usernames (comma seperated, ajax autocomplete).. it's not working there.
EDIT: This required a similar fix in views_handler_filter_user_name.inc
Comment #8
MustangGB CreditAttribution: MustangGB commented