diff --git a/addons/userrights/userrightsprofile.class.inc.php b/addons/userrights/userrightsprofile.class.inc.php index 6fb431b52..d4defa3bd 100644 --- a/addons/userrights/userrightsprofile.class.inc.php +++ b/addons/userrights/userrightsprofile.class.inc.php @@ -77,6 +77,9 @@ class URP_Profiles extends UserRightsBaseClassGUI // Search criteria MetaModel::Init_SetZListItems('standard_search', array('name')); // Criteria of the std search form MetaModel::Init_SetZListItems('advanced_search', array('name')); // Criteria of the advanced search form + MetaModel::Init_SetZListItems('default_search', array ( + 0 => 'name', + )); } protected static $m_aCacheProfiles = null; diff --git a/addons/userrights/userrightsprofile.db.class.inc.php b/addons/userrights/userrightsprofile.db.class.inc.php index 7873c79bf..59db554f0 100644 --- a/addons/userrights/userrightsprofile.db.class.inc.php +++ b/addons/userrights/userrightsprofile.db.class.inc.php @@ -99,6 +99,9 @@ class URP_Profiles extends UserRightsBaseClassGUI // Search criteria MetaModel::Init_SetZListItems('standard_search', array('name')); // Criteria of the std search form MetaModel::Init_SetZListItems('advanced_search', array('name')); // Criteria of the advanced search form + MetaModel::Init_SetZListItems('default_search', array ( + 0 => 'name', + )); } protected $m_bCheckReservedNames = true; diff --git a/addons/userrights/userrightsprojection.class.inc.php b/addons/userrights/userrightsprojection.class.inc.php index b533b5668..909cbc839 100644 --- a/addons/userrights/userrightsprojection.class.inc.php +++ b/addons/userrights/userrightsprojection.class.inc.php @@ -80,6 +80,9 @@ class URP_Profiles extends UserRightsBaseClass // Search criteria MetaModel::Init_SetZListItems('standard_search', array('name')); // Criteria of the std search form MetaModel::Init_SetZListItems('advanced_search', array('name')); // Criteria of the advanced search form + MetaModel::Init_SetZListItems('default_search', array ( + 0 => 'name', + )); } function GetGrantAsHtml($oUserRights, $sClass, $sAction)