mirror of
https://github.com/Karaka-Management/oms-AssetManagement.git
synced 2026-02-18 14:18:41 +00:00
fix tests
This commit is contained in:
parent
2219270147
commit
8262064c47
|
|
@ -201,7 +201,6 @@ final class BackendController extends Controller
|
||||||
$view = new \Modules\Attribute\Theme\Backend\Components\AttributeTypeView($this->app->l11nManager, $request, $response);
|
$view = new \Modules\Attribute\Theme\Backend\Components\AttributeTypeView($this->app->l11nManager, $request, $response);
|
||||||
$view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1006601001, $request, $response);
|
$view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1006601001, $request, $response);
|
||||||
|
|
||||||
/** @var \Modules\Attribute\Models\AttributeType $attribute */
|
|
||||||
$view->attribute = AssetAttributeTypeMapper::get()
|
$view->attribute = AssetAttributeTypeMapper::get()
|
||||||
->with('l11n')
|
->with('l11n')
|
||||||
->with('defaults')
|
->with('defaults')
|
||||||
|
|
@ -212,7 +211,7 @@ final class BackendController extends Controller
|
||||||
->execute();
|
->execute();
|
||||||
|
|
||||||
$view->l11ns = AssetAttributeTypeL11nMapper::getAll()
|
$view->l11ns = AssetAttributeTypeL11nMapper::getAll()
|
||||||
->where('ref', $attribute->id)
|
->where('ref', $view->attribute->id)
|
||||||
->executeGetArray();
|
->executeGetArray();
|
||||||
|
|
||||||
$view->path = 'accounting/asset';
|
$view->path = 'accounting/asset';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user