From e9d33df82af57607f59f3c942c9ee90449f41757 Mon Sep 17 00:00:00 2001 From: Yuriy Bakhtin Date: Fri, 19 Jan 2024 14:51:25 +0100 Subject: [PATCH] Fix replaced method `friendship\Module::isEnabled()` --- docs/CHANGELOG.md | 4 ++++ module.json | 2 +- widgets/TaskPicker.php | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 28859d61..142399ba 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,6 +1,10 @@ Changelog ========= +1.8.5 (Unreleased) +------------------------- +- Fix #249: Fix replaced method `friendship\Module::isEnabled()` + 1.8.4 (December 21, 2023) ------------------------- - Fix #237: Update tests for compatibility with v1.15 diff --git a/module.json b/module.json index 203dc2d4..482e1f7b 100644 --- a/module.json +++ b/module.json @@ -3,7 +3,7 @@ "name": "Tasks", "description": "Intuitive task management tool with many basic and advanced features.", "keywords": ["task", "todo"], - "version": "1.8.4", + "version": "1.8.5", "homepage": "https://github.com/humhub/tasks", "humhub": { "minVersion": "1.14" diff --git a/widgets/TaskPicker.php b/widgets/TaskPicker.php index 7f976be3..40a2aee6 100644 --- a/widgets/TaskPicker.php +++ b/widgets/TaskPicker.php @@ -179,7 +179,7 @@ public static function filter($cfg = null) //If no initial query is given we use getFriends if friendship module is enabled otherwise all tasks if(!isset($cfg['query'])) { - $cfg['query'] = (Yii::$app->getModule('friendship')->getIsEnabled()) + $cfg['query'] = (Yii::$app->getModule('friendship')->settings->get('enable')) ? Yii::$app->task->getIdentity()->getFriends() : UserFilter::find(); }