Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
centreon
centreon
Commits
79dd3d03
Commit
79dd3d03
authored
May 20, 2022
by
YAHIAOUI Hamza
Browse files
fix duplicate cfg nagios query
parent
7d41dac3
Changes
1
Show whitespace changes
Inline
Side-by-side
www/include/configuration/configNagios/DB-Func.php
View file @
79dd3d03
...
...
@@ -235,11 +235,11 @@ function duplicateLoggerV2Cfg(CentreonDB $pearDB, int $originalNagiosId, int $du
{
$statement
=
$pearDB
->
prepare
(
'INSERT INTO cfg_nagios_logger
SELECT
(
:duplicatedNagiosId, `log_v2_logger`, `log_level_functions`,
SELECT
null,
:duplicatedNagiosId, `log_v2_logger`, `log_level_functions`,
`log_level_config`, `log_level_events`, `log_level_checks`,
`log_level_notifications`, `log_level_eventbroker`, `log_level_external_command`,
`log_level_commands`, `log_level_downtimes`, `log_level_comments`,
`log_level_macros`, `log_level_process`, `log_level_runtime`
)
`log_level_macros`, `log_level_process`, `log_level_runtime`
FROM cfg_nagios_logger
WHERE cfg_nagios_id = :originalNagiosId'
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment