mirror of https://github.com/MISP/MISP
Merge branch 'hotfix-2.2.1'
commit
1af6979365
|
@ -73,7 +73,8 @@ class TagsController extends AppController {
|
|||
if (!$this->Tag->exists()) {
|
||||
throw new NotFoundException('Invalid tag');
|
||||
}
|
||||
if ($this->Attribute->delete()) {
|
||||
if ($this->Tag->delete()) {
|
||||
$this->Tag->EventTag->deleteAll(array('EventTag.tag_id' => $id));
|
||||
$this->Session->setFlash(__('Attribute deleted'));
|
||||
} else {
|
||||
$this->Session->setFlash(__('Attribute was not deleted'));
|
||||
|
|
Loading…
Reference in New Issue