]> wagnertech.de Git - kivitendo-erp.git/commitdiff
Unnötige use und require in Pickern entfernt
authorG. Richardson <information@kivitendo-premium.de>
Wed, 14 Jan 2015 17:00:00 +0000 (18:00 +0100)
committerG. Richardson <information@kivitendo-premium.de>
Wed, 14 Jan 2015 17:00:00 +0000 (18:00 +0100)
nach Hinweis von Sven etwas aufgeräumt.

SL/Controller/Chart.pm
SL/Controller/Part.pm

index 68c75bf0fcfd06687ea94ca80efd8686615c61ea..274f2ea5671516c62e6b567fb7d528bd8a0824ec 100644 (file)
@@ -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 });
index eff03697610b2d6a41fd8352cf303bdf96d51289..e1bbcd9a74a6e4b2c96d0d47283374176d66102e 100644 (file)
@@ -79,9 +79,8 @@ sub action_show {
     if (!$self->part) {
       # TODO error
     } else {
-      require Rose::DB::Object::Helpers;
-        $part_hash          = $self->part->as_tree;
-        $part_hash->{cvars} = $self->part->cvar_as_hashref;
+      $part_hash          = $self->part->as_tree;
+      $part_hash->{cvars} = $self->part->cvar_as_hashref;
     }
 
     $self->render(\ SL::JSON::to_json($part_hash), { layout => 0, type => 'json', process => 0 });