From 0f696e3ff5be5fc989260adebb6976d61cedb4f2 Mon Sep 17 00:00:00 2001 From: Alexander Walther Date: Sat, 16 Dec 2023 20:07:04 +0100 Subject: [PATCH] Update boot.php --- boot.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/boot.php b/boot.php index 00dfcd6..5929cb5 100644 --- a/boot.php +++ b/boot.php @@ -14,6 +14,10 @@ 'rex_neues_author', neues_author::class, ); + rex_yform_manager_dataset::setModelClass( + 'rex_neues_entry_lang', + neues_entry_lang::class, + ); } @@ -81,6 +85,8 @@ 'rex_neues_category' => [ 'id', 'name', + 'description', + 'status', ], ], ], @@ -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[] = '' . $neues->getName() . ''; + /* @var $neues_category neues_category */ + $neues_category = neues_category::get($category_id); + if ($neues_category) { + $return[] = '' . $neues_category->getName() . ''; } } return implode('
', $return);