Fix bug on select2 in modal filters, add filters by tags and shelves on articles
This commit is contained in:
@@ -27,9 +27,9 @@ class Tags
|
||||
|
||||
public static function getOptionsFullName()
|
||||
{
|
||||
$tags = Tag::with('group')->get();
|
||||
$tags = Tag::with('group')->get()->toArray();
|
||||
foreach ($tags as $tag) {
|
||||
$data[$tag->id] = $tag->group->name . '-' . $tag->name;
|
||||
$data[$tag['id']] = $tag['group']['name'] . '-' . $tag['name'];
|
||||
}
|
||||
return $data;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user