new api 2.0
This commit is contained in:
parent
a11ebc6a57
commit
2a46720b80
|
@ -2,10 +2,10 @@
|
||||||
|
|
||||||
namespace PandoraFMS\Modules\Tags\Services;
|
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\Shared\Services\Audit;
|
||||||
|
use PandoraFMS\Modules\Tags\Entities\Tag;
|
||||||
|
|
||||||
|
use PandoraFMS\Modules\Tags\Repositories\TagRepository;
|
||||||
|
|
||||||
final class DeleteTagService
|
final class DeleteTagService
|
||||||
{
|
{
|
||||||
|
@ -21,6 +21,12 @@ final class DeleteTagService
|
||||||
$nameTag = $tag->getName();
|
$nameTag = $tag->getName();
|
||||||
$this->tagRepository->delete($idTag);
|
$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(
|
$this->audit->write(
|
||||||
AUDIT_LOG_TAG_MANAGEMENT,
|
AUDIT_LOG_TAG_MANAGEMENT,
|
||||||
'Deleted tag '.$nameTag
|
'Deleted tag '.$nameTag
|
||||||
|
|
Loading…
Reference in New Issue