continue with getter/setter removal

This commit is contained in:
Dennis Eichhorn 2023-05-30 04:15:34 +02:00
parent fca1de738f
commit 9fcee2e25a
2 changed files with 2 additions and 2 deletions

View File

@ -306,7 +306,7 @@ final class ApiController extends Controller
$typeL11n->ref = $request->getDataInt('type') ?? 0;
$typeL11n->content = $request->getDataString('title') ?? '';
$typeL11n->setLanguage(
$request->getDataString('language') ?? $request->getLanguage()
$request->getDataString('language') ?? $request->header->l11n->language
);
return $typeL11n;

View File

@ -104,7 +104,7 @@ final class BackendController extends Controller
$contractTypes = ContractTypeMapper::getAll()
->with('l11n')
->where('l11n/language', $response->getLanguage())
->where('l11n/language', $response->header->l11n->language)
->execute();
$view->setData('contractTypes', $contractTypes);