diff --git a/app/Form/FilterIssue.php b/app/Form/FilterIssue.php index 7f737fb3c..4dd3f3fba 100644 --- a/app/Form/FilterIssue.php +++ b/app/Form/FilterIssue.php @@ -91,13 +91,6 @@ public function fields() // Array of project users $assignTo = [0 => trans('tinyissue.allusers')] + $this->project->users()->get()->lists('fullname', 'id')->all(); - // On submit, generate list of selected tags to populate the field - if (Request::has('tags')) { - $selectTags = (new Model\Tag())->tagsToJson(Request::input('tags')); - } else { - $selectTags = ''; - } - $fields = [ 'keyword' => [ 'type' => 'text', diff --git a/app/Model/Traits/Project/QueryTrait.php b/app/Model/Traits/Project/QueryTrait.php index 066971162..275972378 100644 --- a/app/Model/Traits/Project/QueryTrait.php +++ b/app/Model/Traits/Project/QueryTrait.php @@ -16,7 +16,6 @@ use Illuminate\Database\Eloquent\Relations\Relation; use Illuminate\Database\Query; use Tinyissue\Model\Project; -use Tinyissue\Model\Tag; use Tinyissue\Model\User; /** @@ -178,7 +177,7 @@ public function projectsWidthIssues($status = Project::STATUS_OPEN, $private = P public function getKanbanTagsForUser(User $user) { $tags = $this->kanbanTags() - ->where(function ($query) use ($user) { + ->where(function (Eloquent\Builder $query) use ($user) { $query->where('role_limit', '<=', $user->role_id); $query->orWhere('role_limit', '=', null); }) @@ -203,7 +202,7 @@ public function issuesGroupByTags($tagIds) ->join('projects_issues_tags', 'issue_id', '=', 'id') ->orderBy('id') ->get() - ->groupBy(function (Project\Issue $issue) use ($tagIds) { + ->groupBy(function (Project\Issue $issue) { return $issue->tags->last()->name; });