Skip to content

Commit

Permalink
Update boot.php
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndr-w committed Dec 16, 2023
1 parent 2792e66 commit 0f696e3
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions boot.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
'rex_neues_author',
neues_author::class,
);
rex_yform_manager_dataset::setModelClass(
'rex_neues_entry_lang',
neues_entry_lang::class,
);

}

Expand Down Expand Up @@ -81,6 +85,8 @@
'rex_neues_category' => [
'id',
'name',
'description',
'status',
],
],
],
Expand Down Expand Up @@ -144,9 +150,10 @@ static function ($a) {
$category_ids = array_filter(array_map('intval', explode(',', $a['value'])));

foreach ($category_ids as $category_id) {
$neues = neues_category::get($category_id);
if ($neues) {
$return[] = '<a href="' . rex_url::backendPage('neues/category', $params) . '">' . $neues->getName() . '</a>';
/* @var $neues_category neues_category */
$neues_category = neues_category::get($category_id);
if ($neues_category) {
$return[] = '<a href="' . rex_url::backendPage('neues/category', $params) . '">' . $neues_category->getName() . '</a>';
}
}
return implode('<br>', $return);
Expand Down

0 comments on commit 0f696e3

Please sign in to comment.