openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 818678056a7cbff97499b5b4154eadfb4f66f2e2
parent faa79543fb4dce99a49772f167830c5767d92c53
Author: Jan Dankert <develop@jandankert.de>
Date:   Mon, 13 Jun 2022 22:13:03 +0200

Fix: Show icon for pageelement values

Diffstat:
Mmodules/util/Tree.class.php | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/util/Tree.class.php b/modules/util/Tree.class.php @@ -410,9 +410,10 @@ class Tree if ( $o->hasRight( Permission::ACL_READ ) ) { $treeElement = new TreeElement(); - $treeElement->type = $o->getType(); + $treeElement->type = $o->getType(); $treeElement->action = $o->getType(); - $treeElement->id = $o->objectid; + $treeElement->icon = $o->getType(); + $treeElement->id = $o->objectid; $treeElement->internalId = $o->objectid; $treeElement->extraId = array(); $treeElement->text = $o->getName();