Fix bug on select2 in modal filters, add filters by tags and shelves on articles

This commit is contained in:
Ludovic CANDELLIER
2022-01-30 15:04:08 +01:00
parent 5799eb36fc
commit 5e5f12ddb2
6 changed files with 64 additions and 15 deletions

View File

@@ -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;
}