Add missing variable

This commit is contained in:
Chris Hunt
2025-07-22 15:57:29 +01:00
parent a8e4ab448b
commit 41aa255b88

View File

@@ -194,6 +194,7 @@ class ItemController extends Controller
public function create(): View public function create(): View
{ {
// //
$data['item'] = new \App\Item();
$data['tags'] = Item::ofType('tag')->orderBy('title', 'asc')->pluck('title', 'id'); $data['tags'] = Item::ofType('tag')->orderBy('title', 'asc')->pluck('title', 'id');
$data['tags']->prepend(__('app.dashboard'), 0); $data['tags']->prepend(__('app.dashboard'), 0);
$data['current_tags'] = '0'; $data['current_tags'] = '0';