mirror of
https://github.com/linuxserver/Heimdall.git
synced 2025-11-17 21:32:39 +09:00
fixes for saving non config items
This commit is contained in:
@@ -139,12 +139,11 @@ class ItemController extends Controller
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
$config = json_encode($request->input('config'));
|
$config = $request->input('config');
|
||||||
if($config) {
|
$config = (!empty($config)) ? json_encode($config) : null;
|
||||||
$request->merge([
|
$request->merge([
|
||||||
'description' => $config
|
'description' => $config
|
||||||
]);
|
]);
|
||||||
}
|
|
||||||
|
|
||||||
//die(print_r($request->input('config')));
|
//die(print_r($request->input('config')));
|
||||||
|
|
||||||
@@ -202,12 +201,11 @@ class ItemController extends Controller
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
$config = json_encode($request->input('config'));
|
$config = $request->input('config');
|
||||||
if($config) {
|
$config = (!empty($config)) ? json_encode($config) : null;
|
||||||
$request->merge([
|
$request->merge([
|
||||||
'description' => $config
|
'description' => $config
|
||||||
]);
|
]);
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
Item::find($id)->update($request->all());
|
Item::find($id)->update($request->all());
|
||||||
|
|||||||
@@ -61,9 +61,10 @@ class Item extends Model
|
|||||||
$class = $output->type;
|
$class = $output->type;
|
||||||
$sap = new $class();
|
$sap = new $class();
|
||||||
$view = $sap->configDetails();
|
$view = $sap->configDetails();
|
||||||
}
|
|
||||||
$output->view = $view;
|
$output->view = $view;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
return (object)$output;
|
return (object)$output;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user