diff --git a/addons/userrights/userrightsprofile.class.inc.php b/addons/userrights/userrightsprofile.class.inc.php index f174d2e8b..688978db5 100644 --- a/addons/userrights/userrightsprofile.class.inc.php +++ b/addons/userrights/userrightsprofile.class.inc.php @@ -34,14 +34,15 @@ class URP_Profiles extends UserRightsBaseClassGUI { $aParams = array ( - "category" => "addon/userrights,grant_by_profile,filter", - "key_type" => "autoincrement", - "name_attcode" => "name", - "state_attcode" => "", - "reconc_keys" => array(), - "db_table" => "priv_urp_profiles", - "db_key_field" => "id", - "db_finalclass_field" => "", + "category" => "addon/userrights,grant_by_profile,filter", + "key_type" => "autoincrement", + "name_attcode" => "name", + "complementary_name_attcode" => array('description'), + "state_attcode" => "", + "reconc_keys" => array(), + "db_table" => "priv_urp_profiles", + "db_key_field" => "id", + "db_finalclass_field" => "", ); MetaModel::Init_Params($aParams); //MetaModel::Init_InheritAttributes(); diff --git a/addons/userrights/userrightsprofile.db.class.inc.php b/addons/userrights/userrightsprofile.db.class.inc.php index 23a16fd17..8b02989f4 100644 --- a/addons/userrights/userrightsprofile.db.class.inc.php +++ b/addons/userrights/userrightsprofile.db.class.inc.php @@ -69,14 +69,15 @@ class URP_Profiles extends UserRightsBaseClassGUI { $aParams = array ( - "category" => "addon/userrights", - "key_type" => "autoincrement", - "name_attcode" => "name", - "state_attcode" => "", - "reconc_keys" => array(), - "db_table" => "priv_urp_profiles", - "db_key_field" => "id", - "db_finalclass_field" => "", + "category" => "addon/userrights", + "key_type" => "autoincrement", + "name_attcode" => "name", + "complementary_name_attcode" => array('description'), + "state_attcode" => "", + "reconc_keys" => array(), + "db_table" => "priv_urp_profiles", + "db_key_field" => "id", + "db_finalclass_field" => "", ); MetaModel::Init_Params($aParams); //MetaModel::Init_InheritAttributes(); diff --git a/addons/userrights/userrightsprojection.class.inc.php b/addons/userrights/userrightsprojection.class.inc.php index b46d0bf0b..7a9642218 100644 --- a/addons/userrights/userrightsprojection.class.inc.php +++ b/addons/userrights/userrightsprojection.class.inc.php @@ -50,14 +50,15 @@ class URP_Profiles extends UserRightsBaseClass { $aParams = array ( - "category" => "addon/userrights", - "key_type" => "autoincrement", - "name_attcode" => "name", - "state_attcode" => "", - "reconc_keys" => array(), - "db_table" => "priv_urp_profiles", - "db_key_field" => "id", - "db_finalclass_field" => "", + "category" => "addon/userrights", + "key_type" => "autoincrement", + "name_attcode" => "name", + "complementary_name_attcode" => array('description'), + "state_attcode" => "", + "reconc_keys" => array(), + "db_table" => "priv_urp_profiles", + "db_key_field" => "id", + "db_finalclass_field" => "", ); MetaModel::Init_Params($aParams); //MetaModel::Init_InheritAttributes();