Skip to content

Commit

Permalink
Fix replaced method friendship\Module::isEnabled()
Browse files Browse the repository at this point in the history
  • Loading branch information
yurabakhtin committed Jan 19, 2024
1 parent 11e785e commit e9d33df
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion widgets/TaskPicker.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit e9d33df

Please sign in to comment.