diff --git a/addressbook/inc/class.addressbook_ui.inc.php b/addressbook/inc/class.addressbook_ui.inc.php index ec70d523f6..04d08ab26a 100644 --- a/addressbook/inc/class.addressbook_ui.inc.php +++ b/addressbook/inc/class.addressbook_ui.inc.php @@ -1562,7 +1562,7 @@ window.egw_LAB.wait(function() { { if(!is_numeric($key)) continue; if(preg_match('/'.$GLOBALS['egw']->db->capabilities['case_insensitive_like']. - ' '.$GLOBALS['egw']->db->quote('[a-z]%').'$/',$col_filter) == 1 + ' '.$GLOBALS['egw']->db->quote('[a-z]%').'$/i',$col_filter) == 1 ) { unset($query['col_filter'][$key]); diff --git a/api/js/etemplate/et2_extension_nextmatch.js b/api/js/etemplate/et2_extension_nextmatch.js index 9458792187..7b6bb6dfa9 100644 --- a/api/js/etemplate/et2_extension_nextmatch.js +++ b/api/js/etemplate/et2_extension_nextmatch.js @@ -2859,10 +2859,10 @@ var et2_nextmatch_header_bar = (function(){ "use strict"; return et2_DOMWidget.e if(this.nextmatch.options.settings.lettersearch) { jQuery("td",this.lettersearch).removeClass("lettersearch_active"); - jQuery(filters.searchletter ? "td#"+filters.searchletter : "td.lettersearch[id='']").addClass("lettersearch_active"); + jQuery(filters.searchletter ? "td#"+filters.searchletter : "td.lettersearch[id='']",this.lettersearch).addClass("lettersearch_active"); // Set activeFilters to current value - filters.searchletter = jQuery("td.lettersearch_active").attr("id"); + filters.searchletter = jQuery("td.lettersearch_active",this.lettersearch).attr("id") || false; } // Reset flag