Refactoring: richtige leere JSON-Antwort erzeugen
authorMoritz Bunkus <m.bunkus@linet-services.de>
Fri, 1 Feb 2013 12:32:44 +0000 (13:32 +0100)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 1 Apr 2014 11:02:23 +0000 (13:02 +0200)
SL/Controller/RequirementSpecComplexity.pm
SL/Controller/RequirementSpecPredefinedText.pm
SL/Controller/RequirementSpecRisk.pm
SL/Controller/RequirementSpecStatus.pm
SL/Controller/RequirementSpecType.pm

index e073629..d574a65 100644 (file)
@@ -70,7 +70,7 @@ sub action_reorder {
 
   SL::DB::RequirementSpecComplexity->reorder_list(@{ $::form->{requirement_spec_complexity_id} || [] });
 
-  $self->render('1;', { type => 'js', inline => 1 });
+  $self->render(\'', { type => 'json' });
 }
 
 #
index 24d6f91..6aebc86 100644 (file)
@@ -70,7 +70,7 @@ sub action_reorder {
 
   SL::DB::RequirementSpecPredefinedText->reorder_list(@{ $::form->{requirement_spec_predefined_text_id} || [] });
 
-  $self->render('1;', { type => 'js', inline => 1 });
+  $self->render(\'', { type => 'json' });
 }
 
 #
index eef69ee..6d2f228 100644 (file)
@@ -70,7 +70,7 @@ sub action_reorder {
 
   SL::DB::RequirementSpecRisk->reorder_list(@{ $::form->{requirement_spec_risk_id} || [] });
 
-  $self->render('1;', { type => 'js', inline => 1 });
+  $self->render(\'', { type => 'json' });
 }
 
 #
index debd18b..eeda524 100644 (file)
@@ -71,7 +71,7 @@ sub action_reorder {
 
   SL::DB::RequirementSpecStatus->reorder_list(@{ $::form->{requirement_spec_status_id} || [] });
 
-  $self->render('1;', { type => 'js', inline => 1 });
+  $self->render(\'', { type => 'json' });
 }
 
 #
index e1e6aee..18aa45a 100644 (file)
@@ -70,7 +70,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' });
 }
 
 #