Quick backup before crash

This commit is contained in:
Dennis Eichhorn 2023-06-13 18:55:51 +00:00
parent 2b9dbbfce2
commit 142b3f2f68
2 changed files with 5 additions and 4 deletions

View File

@ -121,10 +121,10 @@ final class Installer extends InstallerAbstract
/**
* Install default attribute types
*
* @param ApplicationAbstract $app Application
* @param array<array{name:string, l11n?:array<string, string>, is_required?:bool, is_custom_allowed?:bool, validation_pattern?:string, value_type?:string, values?:array<string, mixed>}> $attributes Attribute definition
* @param ApplicationAbstract $app Application
* @param array $attributes Attribute definition
*
* @return array<string, array>
* @return array
*
* @since 1.0.0
*/
@ -190,7 +190,7 @@ final class Installer extends InstallerAbstract
* @param array $clientAttrType Attribute types
* @param array<array{name:string, l11n?:array<string, string>, is_required?:bool, is_custom_allowed?:bool, validation_pattern?:string, value_type?:string, values?:array<string, mixed>}> $attributes Attribute definition
*
* @return array<string, array>
* @return array
*
* @since 1.0.0
*/

View File

@ -116,6 +116,7 @@ final class ApiController extends Controller
$this->createModel($request->header->account, $client, ClientMapper::class, 'client', $request->getOrigin());
// Set VAT Id
// @todo: move to separate function
if ($request->hasData('vat_id')) {
/** @var \Modules\Organization\Models\Unit $unit */
$unit = UnitMapper::get()