X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/442b26e2b4f442a41fbe5fa256b12c0e01219190..2eb2bc5583f28aa5f9bb18c2cd314995d0570f8c:/SL/Presenter/RequirementSpecItem.pm diff --git a/SL/Presenter/RequirementSpecItem.pm b/SL/Presenter/RequirementSpecItem.pm index b7f377e2c..c9653e7ac 100644 --- a/SL/Presenter/RequirementSpecItem.pm +++ b/SL/Presenter/RequirementSpecItem.pm @@ -18,13 +18,15 @@ sub requirement_spec_item_tree_node_title { sub requirement_spec_item_jstree_data { my ($self, $item, %params) = @_; - my @children = map { $self->requirement_spec_item_jstree_data($_, %params) } @{ $item->sorted_children }; + my @children = map { $self->requirement_spec_item_jstree_data($_, %params) } @{ $item->children_sorted }; my $type = !$item->parent_id ? 'section' : 'function-block'; + my $class = $type . '-context-menu'; + $class .= ' flagged' if $item->is_flagged; return { data => $self->requirement_spec_item_tree_node_title($item), metadata => { id => $item->id, type => $type }, - attr => { id => "fb-" . $item->id, href => $params{href} || '#', class => $type . '-context-menu' }, + attr => { id => "fb-" . $item->id, href => $params{href} || '#', class => $class }, children => \@children, }; }