From fdb439f054463e5f4ac00111335bc19851aa60c1 Mon Sep 17 00:00:00 2001 From: Stephen Abello Date: Thu, 21 Jun 2018 13:22:01 +0000 Subject: [PATCH] =?UTF-8?q?N=C2=B01520=20:=20URP=5FProfiles=20now=20has=20?= =?UTF-8?q?a=20default=20search=20criteria?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SVN:trunk[5897] --- addons/userrights/userrightsprofile.class.inc.php | 3 +++ addons/userrights/userrightsprofile.db.class.inc.php | 3 +++ addons/userrights/userrightsprojection.class.inc.php | 3 +++ 3 files changed, 9 insertions(+) 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)