some fix
This commit is contained in:
@ -105,9 +105,6 @@ class MenuService
|
||||
$child = self::getChild($id);
|
||||
if (!$child->isEmpty()){
|
||||
foreach ($child as $item){
|
||||
// if ($item->url === \kernel\Request::getUrlPath()){
|
||||
// return true;
|
||||
// }
|
||||
if (strripos(Request::getUrlPath(), $item->url) !== false) {
|
||||
return true;
|
||||
}
|
||||
|
@ -47,10 +47,10 @@ $table->addAction(function ($row, $url) use ($moduleService) {
|
||||
return "<a class='btn btn-primary' href='$url/view/?slug=$slug' style='margin: 3px; width: 150px;' >Просмотр</a>";
|
||||
});
|
||||
|
||||
$table->addAction(function ($row, $url) use ($moduleService) {
|
||||
$slug = $row['slug'];
|
||||
return "<a class='btn btn-primary' href='$url/update/?slug=$slug' style='margin: 3px; width: 150px;' >Обновить</a>";
|
||||
});
|
||||
//$table->addAction(function ($row, $url) use ($moduleService) {
|
||||
// $slug = $row['slug'];
|
||||
// return "<a class='btn btn-primary' href='$url/update/?slug=$slug' style='margin: 3px; width: 150px;' >Обновить</a>";
|
||||
//});
|
||||
|
||||
$table->create();
|
||||
|
||||
|
Reference in New Issue
Block a user