Open sadortun opened 3 years ago
Summary
If you use TagManager::deleteTagging() then TagManager::addTag() addTag() re-add deleted tags because TagManager::$storage is not cleared .
addTag()
TagManager::$storage
PR will follow in a few minutes ...
Steps to reproduce
$entity = new Contact(); $oldTagID = 1234 $tag = new Tag(); $tagManager->deleteTagging($entity , [$oldTagID ]); $tagManager->addTag($entity , $tag)
Actual Result OldTag is gone, and `$tag is added
Expected Result OldTag is still there, with the new $tag
$tag
Details about your environment
Summary
If you use TagManager::deleteTagging() then TagManager::addTag()
addTag()
re-add deleted tags becauseTagManager::$storage
is not cleared .PR will follow in a few minutes ...
Steps to reproduce
Actual Result OldTag is gone, and `$tag is added
Expected Result
OldTag is still there, with the new
$tag
Details about your environment