mirror of
https://github.com/Karaka-Management/oms-EquipmentManagement.git
synced 2026-01-11 00:58:42 +00:00
template fixes + bug fixes + style fixes
This commit is contained in:
parent
38820fc8a3
commit
923353efae
|
|
@ -62,7 +62,7 @@ final class BackendController extends Controller
|
|||
$view->attributes = EquipmentAttributeTypeMapper::getAll()
|
||||
->with('l11n')
|
||||
->where('l11n/language', $response->header->l11n->language)
|
||||
->execute();
|
||||
->executeGetArray();
|
||||
|
||||
$view->path = 'equipment';
|
||||
|
||||
|
|
@ -93,7 +93,7 @@ final class BackendController extends Controller
|
|||
->with('type/l11n')
|
||||
->where('type/l11n/language', $response->header->l11n->language)
|
||||
->sort('id', 'DESC')
|
||||
->execute();
|
||||
->executeGetArray();
|
||||
|
||||
$view->data['equipments'] = $list;
|
||||
|
||||
|
|
@ -128,7 +128,7 @@ final class BackendController extends Controller
|
|||
|
||||
$view->l11ns = EquipmentAttributeTypeL11nMapper::getAll()
|
||||
->where('ref', $view->attribute->id)
|
||||
->execute();
|
||||
->executeGetArray();
|
||||
|
||||
$view->path = 'fleet/vehicle';
|
||||
|
||||
|
|
@ -160,7 +160,7 @@ final class BackendController extends Controller
|
|||
|
||||
$view->l11ns = EquipmentAttributeValueL11nMapper::getAll()
|
||||
->where('ref', $view->attribute->id)
|
||||
->execute();
|
||||
->executeGetArray();
|
||||
|
||||
// @todo Also find the ItemAttributeType
|
||||
|
||||
|
|
@ -241,7 +241,7 @@ final class BackendController extends Controller
|
|||
->with('type/l11n')
|
||||
->where('reference', $equipment->id)
|
||||
->where('type/l11n/language', $response->header->l11n->language)
|
||||
->execute();
|
||||
->executeGetArray();
|
||||
|
||||
$view->data['inspections'] = $inspections;
|
||||
|
||||
|
|
@ -272,12 +272,12 @@ final class BackendController extends Controller
|
|||
$equipmentTypes = EquipmentTypeMapper::getAll()
|
||||
->with('l11n')
|
||||
->where('l11n/language', $response->header->l11n->language)
|
||||
->execute();
|
||||
->executeGetArray();
|
||||
|
||||
$view->data['types'] = $equipmentTypes;
|
||||
|
||||
$units = UnitMapper::getAll()
|
||||
->execute();
|
||||
->executeGetArray();
|
||||
|
||||
$view->data['units'] = $units;
|
||||
|
||||
|
|
@ -337,7 +337,7 @@ final class BackendController extends Controller
|
|||
|
||||
$list = InspectionTypeMapper::getAll()
|
||||
->sort('id', 'DESC')
|
||||
->execute();
|
||||
->executeGetArray();
|
||||
|
||||
$view->data['inspections'] = $list;
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ trait ApiControllerEquipmentTrait
|
|||
#[\PHPUnit\Framework\Attributes\Group('module')]
|
||||
public function testApiEquipmentCreate() : void
|
||||
{
|
||||
$equipmentType = EquipmentTypeMapper::getAll()->execute();
|
||||
$equipmentType = EquipmentTypeMapper::getAll()->executeGetArray();
|
||||
$equipmentTypeCount = \count($equipmentType);
|
||||
|
||||
$response = new HttpResponse();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user