diff --git a/Module.php b/Module.php index b1e2ab1..cb5b747 100644 --- a/Module.php +++ b/Module.php @@ -52,7 +52,7 @@ public function getContentContainerTypes() public function disable() { foreach (Poll::find()->all() as $poll) { - $poll->delete(); + $poll->hardDelete(); } parent::disable(); @@ -64,7 +64,7 @@ public function disable() public function disableContentContainer(ContentContainerActiveRecord $container) { foreach (Poll::find()->contentContainer($container)->all() as $poll) { - $poll->delete(); + $poll->hardDelete(); } parent::disableContentContainer($container); diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 8967d3a..3ff8863 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,6 +1,10 @@ Changelog ========= +1.3.0 (May 1, 2023) +------------------- +- Fix #122: Hard delete records on disable module + 1.2.2 (Unreleased) ------------------------- - Fix #117: Fix responsive layout bug diff --git a/module.json b/module.json index 974ac6e..83e8f1c 100644 --- a/module.json +++ b/module.json @@ -3,9 +3,9 @@ "name": "Polls", "description": "Easy to use poll system", "keywords": ["poll", "voting", "decision making"], - "version": "1.2.2", + "version": "1.3.0", "humhub": { - "minVersion": "1.13" + "minVersion": "1.14" }, "homepage": "https://github.com/humhub/polls", "authors": [ @@ -20,8 +20,8 @@ } ], "screenshots": [ - "assets/screen1.PNG", - "assets/screen2.PNG", + "assets/screen1.PNG", + "assets/screen2.PNG", "assets/screen3.PNG", "assets/screen4.PNG" ]