mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Make sure letter filter doesn't persist
This commit is contained in:
parent
902d569026
commit
8018a0f243
@ -1113,6 +1113,19 @@ class addressbook_ui extends addressbook_bo
|
|||||||
{ // remove previous addEmail() calls, otherwise they will be run again
|
{ // remove previous addEmail() calls, otherwise they will be run again
|
||||||
egw_framework::set_onload(preg_replace('/addEmail\([^)]+\);/','',egw_framework::set_onload()),true);
|
egw_framework::set_onload(preg_replace('/addEmail\([^)]+\);/','',egw_framework::set_onload()),true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Make sure old lettersearch filter doesn't stay - current letter filter will be added later
|
||||||
|
foreach($query['col_filter'] as $key => $col_filter)
|
||||||
|
{
|
||||||
|
if(!is_numeric($key)) continue;
|
||||||
|
if(preg_match('/'.$GLOBALS['egw']->db->capabilities['case_insensitive_like'].
|
||||||
|
' '.$GLOBALS['egw']->db->quote('[a-z]%').'$/',$col_filter) == 1
|
||||||
|
)
|
||||||
|
{
|
||||||
|
unset($query['col_filter'][$key]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//echo "<p>uicontacts::get_rows(".print_r($query,true).")</p>\n";
|
//echo "<p>uicontacts::get_rows(".print_r($query,true).")</p>\n";
|
||||||
if (!$id_only)
|
if (!$id_only)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user