Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Contact template hidden feature bug #11590

Open
c0c0163 opened this issue Aug 17, 2022 · 0 comments
Open

Contact template hidden feature bug #11590

c0c0163 opened this issue Aug 17, 2022 · 0 comments
Labels
status/new New tickets

Comments

@c0c0163
Copy link

c0c0163 commented Aug 17, 2022

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               |
+------------+-------------------+---------------+
@c0c0163 c0c0163 added the status/new New tickets label Aug 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status/new New tickets
Projects
None yet
Development

No branches or pull requests

1 participant