hand legacy image_source field

This commit is contained in:
Petri Asikainen 2021-07-07 09:33:48 +03:00
parent 7a424649c8
commit 41deabf998

View file

@ -548,6 +548,14 @@ class AssetsController extends Controller
($request->filled('rtd_location_id')) ?
$asset->location_id = $request->get('rtd_location_id') : null;
/**
* this is here just legacy reasons. Api\AssetController
* used image_source once to allow encoded image uploads.
*/
if ($request->has('image_source')) {
$request->offsetSet('image', $request->offsetGet('image_source'));
}
$asset = $request->handleImages($asset);
// Update custom fields