More work on apps

This commit is contained in:
Kode
2022-03-16 18:35:40 +00:00
parent f5bce95808
commit becbe5ab96
15 changed files with 689 additions and 22 deletions

View File

@@ -250,7 +250,9 @@ class ItemController extends Controller
$item = Item::find($id);
if($item->appid === null && $item->class !== null) { // old apps wont have an app id so set it
$app = Application::where('class', $item->class)->first();
$item->appid = $app->appid;
if($app) {
$item->appid = $app->appid;
}
}
$data['item'] = $item;
$data['tags'] = Item::ofType('tag')->orderBy('title', 'asc')->pluck('title', 'id');