Load in configs values if class has been lost

This commit is contained in:
Chris Hunt
2025-07-22 15:50:51 +01:00
parent 08b8ab6d4f
commit a8e4ab448b
4 changed files with 23 additions and 3 deletions

View File

@@ -422,6 +422,7 @@ class ItemController extends Controller
{
$output = [];
$appid = $request->input('app');
$itemId = $request->input('item_id');
if ($appid === 'null') {
return null;
@@ -436,8 +437,10 @@ class ItemController extends Controller
$appdetails = Application::getApp($appid);
if ((bool)$app->enhanced === true) {
$item = $itemId ? Item::find($itemId) : Item::where('appid', $appid)->first();
// if(!isset($app->config)) { // class based config
$output['custom'] = className($appdetails->name) . '.config';
$output['appvalue'] = $item->description;
// }
}