code fixes

This commit is contained in:
Dennis Eichhorn 2024-03-15 20:24:38 +00:00
parent 1a168e5aa9
commit dcf4322140
4 changed files with 3 additions and 4 deletions

View File

@ -182,7 +182,6 @@ final class BackendController extends Controller
$view->data['units'] = UnitMapper::getAll()
->execute();
/** @var \Modules\Attribute\Models\AttributeType[] */
$view->data['attributeTypes'] = ContractAttributeTypeMapper::getAll()
->with('l11n')
->where('l11n/language', $response->header->l11n->language)

View File

@ -13,7 +13,7 @@
declare(strict_types=1);
return ['Navigation' => [
'Attributes' => 'Attribute',
'Attributes' => 'Attribute',
'Contract' => 'Vertrag',
'ContractTypes' => 'Vertragsarten',
'Contracts' => 'Verträge',

View File

@ -13,7 +13,7 @@
declare(strict_types=1);
return ['Navigation' => [
'Attributes' => 'Attributes',
'Attributes' => 'Attributes',
'Contract' => 'Contract',
'ContractTypes' => 'Types',
'Contracts' => 'Contracts',

View File

@ -187,7 +187,7 @@ echo $this->data['nav']->render(); ?>
<tbody>
<?php
$count = 0;
$now = new \DateTime('now');
$now = new \DateTime('now');
foreach ($this->data['children'] as $key => $value) :
++$count;
$url = UriFactory::build('{/base}/contract/view?{?}&id=' . $value->id);