app/Form/Issue.php 1 location
|
@@ 123-129 (lines=7) @@
|
| 120 |
|
if ($this->isEditing()) { |
| 121 |
|
$selectTags = $this->getModel()->tags()->with('parent')->get()->filter(function (Model\Tag $tag) { |
| 122 |
|
return !($tag->name == Model\Tag::STATUS_OPEN || $tag->name == Model\Tag::STATUS_CLOSED); |
| 123 |
|
})->map(function (Model\Tag $tag) { |
| 124 |
|
return [ |
| 125 |
|
'value' => $tag->id, |
| 126 |
|
'label' => ($tag->fullname), |
| 127 |
|
'bgcolor' => $tag->bgcolor, |
| 128 |
|
]; |
| 129 |
|
})->toJson(); |
| 130 |
|
} else { |
| 131 |
|
$selectTags = ''; |
| 132 |
|
} |
app/Http/Controllers/Administration/TagsController.php 1 location
|
@@ 120-126 (lines=7) @@
|
| 117 |
|
if (!empty($term)) { |
| 118 |
|
$tags = $tag->searchTags($term)->filter(function (Tag $tag) { |
| 119 |
|
return !($tag->name == 'open' || $tag->name == 'closed'); |
| 120 |
|
})->map(function (Tag $tag) { |
| 121 |
|
return [ |
| 122 |
|
'value' => $tag->id, |
| 123 |
|
'label' => $tag->fullname, |
| 124 |
|
'bgcolor' => $tag->bgcolor, |
| 125 |
|
]; |
| 126 |
|
})->toArray(); |
| 127 |
|
} |
| 128 |
|
|
| 129 |
|
return response()->json($tags); |