diff --git a/pandora_console/include/lib/Modules/Tags/Services/DeleteTagService.php b/pandora_console/include/lib/Modules/Tags/Services/DeleteTagService.php index 617891eebf..a60b9d8b88 100644 --- a/pandora_console/include/lib/Modules/Tags/Services/DeleteTagService.php +++ b/pandora_console/include/lib/Modules/Tags/Services/DeleteTagService.php @@ -2,10 +2,10 @@ namespace PandoraFMS\Modules\Tags\Services; -use PandoraFMS\Modules\Tags\Entities\Tag; -use PandoraFMS\Modules\Tags\Repositories\TagRepository; - use PandoraFMS\Modules\Shared\Services\Audit; +use PandoraFMS\Modules\Tags\Entities\Tag; + +use PandoraFMS\Modules\Tags\Repositories\TagRepository; final class DeleteTagService { @@ -21,6 +21,12 @@ final class DeleteTagService $nameTag = $tag->getName(); $this->tagRepository->delete($idTag); + // TODO: XXX. + \db_process_delete_temp('ttag_module', 'id_tag', $idTag); + + // TODO: XXX. + \db_process_delete_temp('ttag_policy_module', 'id_tag', $idTag); + $this->audit->write( AUDIT_LOG_TAG_MANAGEMENT, 'Deleted tag '.$nameTag