N°2039 - Add complementary name on child classes to avoid empty summary cards in iTop 3.1+

This commit is contained in:
Molkobain
2024-04-23 19:11:26 +02:00
parent 028c7f0604
commit 78215439ee
4 changed files with 34 additions and 17 deletions

View File

@@ -52,9 +52,9 @@ abstract class Action extends cmdbAbstractObject
"category" => "grant_by_profile,core/cmdb",
"key_type" => "autoincrement",
"name_attcode" => "name",
"complementary_name_attcode" => array('finalclass', 'description'),
"complementary_name_attcode" => ['finalclass', 'description'],
"state_attcode" => "status",
"reconc_keys" => array('name'),
"reconc_keys" => ['name'],
"db_table" => "priv_action",
"db_key_field" => "id",
"db_finalclass_field" => "realclass",
@@ -287,8 +287,9 @@ abstract class ActionNotification extends Action
"category" => "grant_by_profile,core/cmdb",
"key_type" => "autoincrement",
"name_attcode" => "name",
"complementary_name_attcode" => ['finalclass', 'description'],
"state_attcode" => "",
"reconc_keys" => array('name'),
"reconc_keys" => ['name'],
"db_table" => "priv_action_notification",
"db_key_field" => "id",
"db_finalclass_field" => "",