X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FController%2FChart.pm;h=274f2ea5671516c62e6b567fb7d528bd8a0824ec;hb=95fde3c0a3871b0b9a4d9feaa10ae24b88bbb006;hp=68c75bf0fcfd06687ea94ca80efd8686615c61ea;hpb=4f152ed21fb137de6d6f4d48ec28d67055bcf965;p=kivitendo-erp.git diff --git a/SL/Controller/Chart.pm b/SL/Controller/Chart.pm index 68c75bf0f..274f2ea56 100644 --- a/SL/Controller/Chart.pm +++ b/SL/Controller/Chart.pm @@ -6,7 +6,6 @@ use parent qw(SL::Controller::Base); use Clone qw(clone); use SL::DB::Chart; use SL::Controller::Helper::GetModels; -use SL::DB::Helper::Paginated; use SL::Locale::String qw(t8); use SL::JSON; @@ -74,9 +73,8 @@ sub action_show { if (!$self->chart) { # TODO error } else { - require Rose::DB::Object::Helpers; - $chart_hash = $self->chart->as_tree; - $chart_hash->{displayable_name} = $self->chart->displayable_name; + $chart_hash = $self->chart->as_tree; + $chart_hash->{displayable_name} = $self->chart->displayable_name; } $self->render(\ SL::JSON::to_json($chart_hash), { layout => 0, type => 'json', process => 0 });