]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/Controller/Part.pm
Unnötige use und require in Pickern entfernt
[kivitendo-erp.git] / SL / Controller / Part.pm
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 });