centreon-archived
centreon-archived copied to clipboard
Contact template hidden feature bug
BUG REPORT INFORMATION
Prerequisites
The opened issue, must be code related. GitHub is not meant for support. Feel free to check the CONTRIBUTING section for more details.
Versions
Centreon 22.04
Operating System
Debian bullseye 11.4
Description
Contact template has a field contact_theme but this does not propagate to children
CONTACTTPL;ADD;Default_template;Default_template;-;0;1;browser;
CONTACTTPL;setparam;Default_template;hostnotifperiod;none
CONTACTTPL;setparam;Default_template;svcnotifperiod;none
CONTACTTPL;setparam;Default_template;hostnotifopt;n
CONTACTTPL;setparam;Default_template;servicenotifopt;n
CONTACTTPL;setparam;Default_template;contact_js_effects;0
CONTACTTPL;setparam;Default_template;**contact_theme;dark**
CONTACTTPL;setparam;Default_template;timezone;Asia/Dubai
CONTACTTPL;setparam;Default_template;reach_api;0
CONTACTTPL;setparam;Default_template;reach_api_rt;0
CONTACTTPL;setparam;Default_template;contact_enable_notifications;2
CONTACTTPL;setparam;Default_template;contact_type_msg;txt
CONTACTTPL;setparam;Default_template;contact_activate;1
CONTACTTPL;setparam;Default_template;show_deprecated_pages;1
CONTACTTPL;setparam;Default_template;contact_ldap_last_sync;0
CONTACTTPL;setparam;Default_template;contact_ldap_required_sync;0
CONTACTTPL;setparam;Default_template;enable_one_click_export;0
Steps to Reproduce
Set CONTACTTPL;setparam;Default_template;contact_theme;dark from clapi Define ldap authentication with Contact template to Default_template Export the configuration. Log in with ldap user
User does not inherit the contact_theme from Default template
MariaDB [(none)]> SELECT contact_id, contact_name, contact_theme FROM centreon.contact;
+------------+-------------------+---------------+
| contact_id | contact_name | contact_theme |
+------------+-------------------+---------------+
| 1 | Admin Admin | light |
| 4 | centreon-gorgone | light |
| 17 | Guest | light |
| 18 | User | light |
| 19 | Default_template | dark |
| 20 | Controller1 | light |
+------------+-------------------+---------------+