Commit 4798dcfd authored by loiclau's avatar loiclau Committed by Loic Laurent
Browse files

fix(servicegroup) add remove servicegroup methode (#8950)

parent 76ae3f29
......@@ -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();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment