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
4798dcfd
Commit
4798dcfd
authored
Sep 03, 2020
by
loiclau
Committed by
Loic Laurent
Sep 07, 2020
Browse files
fix(servicegroup) add remove servicegroup methode (#8950)
parent
76ae3f29
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/include/configuration/configObject/servicegroup/DB-Func.php
View file @
4798dcfd
...
...
@@ -129,6 +129,7 @@ function deleteServiceGroupInDB($serviceGroups = [])
foreach
(
array_keys
(
$serviceGroups
)
as
$key
)
{
$sgId
=
filter_var
(
$key
,
FILTER_VALIDATE_INT
);
removeRelationLastServicegroupDependency
((
int
)
$sgId
);
$statement
=
$pearDB
->
prepare
(
"SELECT sg_name FROM `servicegroup` WHERE `sg_id` = :sg_id LIMIT 1"
);
$statement
->
bindValue
(
':sg_id'
,
$sgId
,
\
PDO
::
PARAM_INT
);
$statement
->
execute
();
...
...
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