Finanzcontrolling: Refactor Accessors, Warnungen vermeiden
[kivitendo-erp.git] / SL / Controller / RequirementSpecType.pm
index e1e6aee..e9bdb7b 100644 (file)
@@ -5,7 +5,6 @@ use strict;
 use parent qw(SL::Controller::Base);
 
 use SL::DB::RequirementSpecType;
-use SL::DB::Language;
 use SL::Helper::Flash;
 use SL::Locale::String;
 
@@ -32,7 +31,7 @@ sub action_list {
 sub action_new {
   my ($self) = @_;
 
-  $self->{requirement_spec_type} = SL::DB::RequirementSpecType->new;
+  $self->{requirement_spec_type} = SL::DB::RequirementSpecType->new(template_file_name => 'requirement_spec');
   $self->render('requirement_spec_type/form', title => t8('Create a new requirement spec type'));
 }
 
@@ -70,7 +69,7 @@ sub action_reorder {
 
   SL::DB::RequirementSpecType->reorder_list(@{ $::form->{requirement_spec_type_id} || [] });
 
-  $self->render('1;', { type => 'js', inline => 1 });
+  $self->render(\'', { type => 'json' });
 }
 
 #