diff --git a/CHANGELOG.md b/CHANGELOG.md index 7f8c43b..b2273a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## 0.1.1 Under development +- Bug #85: Update license badge URL in `README.md` and add license header in `LICENSE.md` and kill infection mutant (@terabytesoftw) + ## 0.1.0 July 8, 2025 - Initial release diff --git a/LICENSE.md b/LICENSE.md index 1555f8e..13bf79d 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,3 +1,5 @@ +# BSD 3-Clause License + Copyright © 2008 by Terabytesoftw () All rights reserved. diff --git a/README.md b/README.md index b27774e..9f8fce3 100644 --- a/README.md +++ b/README.md @@ -378,7 +378,7 @@ For detailed configuration options and advanced usage. ## License -[![License](https://poser.pugx.org/yii2-extensions/nested-sets-behavior/license)](LICENSE.md) +[![License](https://img.shields.io/github/license/yii2-extensions/nested-sets-behavior)](LICENSE.md) ## Fork diff --git a/src/NestedSetsBehavior.php b/src/NestedSetsBehavior.php index fcd893b..73ba6b6 100644 --- a/src/NestedSetsBehavior.php +++ b/src/NestedSetsBehavior.php @@ -259,9 +259,6 @@ public function afterUpdate(): void if ($this->operation === self::OPERATION_MAKE_ROOT) { $this->moveNodeAsRoot($currentOwnerTreeValue); - $this->invalidateCache(); - - return; } if ($this->node === null) {