mirror of
https://github.com/Karaka-Management/oms-Navigation.git
synced 2026-02-17 09:08:40 +00:00
bug fixes / dbmapper fixes
This commit is contained in:
parent
f7a9b08e74
commit
97f3e61864
|
|
@ -210,7 +210,7 @@ final class BackendController extends Controller
|
|||
$view->setTemplate('/Modules/' . static::NAME . '/Admin/Settings/Theme/Backend/settings-nav');
|
||||
$view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1000105001, $request, $response));
|
||||
|
||||
$view->addData('nav-element', NavElementMapper::get()->where('id', (int) $request->getData('nav')))->execute();
|
||||
$view->addData('nav-element', NavElementMapper::get()->where('id', (int) $request->getData('nav'))->execute());
|
||||
|
||||
return $view;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ declare(strict_types=1);
|
|||
|
||||
namespace Modules\Navigation\Controller;
|
||||
|
||||
use Modules\Navigation\Models\Navigation;
|
||||
use phpOMS\Module\ModuleAbstract;
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ if (isset($this->nav[\Modules\Navigation\Models\NavigationType::CONTENT_SIDE]))
|
|||
/** @var array $data */
|
||||
if ($link['nav_parent'] == $data[1]) {
|
||||
echo '<li><a href="' . \phpOMS\Uri\UriFactory::build($link['nav_uri']) . '">'
|
||||
. $this->getHtml(5, 'Backend', $link['nav_name']) . '</a>';
|
||||
. $this->getHtml('5', 'Backend', $link['nav_name']) . '</a>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user