Skip to content

Commit

Permalink
[fix #7986] Problem in searching with space using chosen
Browse files Browse the repository at this point in the history
  • Loading branch information
Gunjan Patel committed Sep 30, 2015
1 parent 9c37b27 commit deb74fe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libraries/cms/html/formbehavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ public static function chosen($selector = '.advancedSelect', $debug = null, $opt
$options['disable_search_threshold'] = 10;
}

// Allow searching contains space in query
if (!isset($options['search_contains']))
{
$options['search_contains'] = true;
}

if (!isset($options['allow_single_deselect']))
{
$options['allow_single_deselect'] = true;
Expand Down

0 comments on commit deb74fe

Please sign in to comment.