From: Moritz Bunkus Date: Fri, 1 Feb 2013 12:32:44 +0000 (+0100) Subject: Refactoring: richtige leere JSON-Antwort erzeugen X-Git-Tag: release-3.2.0beta~467^2~256 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=c45b8d02a52b00efe282e14e55cf5c464066eb01;p=kivitendo-erp.git Refactoring: richtige leere JSON-Antwort erzeugen --- diff --git a/SL/Controller/RequirementSpecComplexity.pm b/SL/Controller/RequirementSpecComplexity.pm index e07362993..d574a658f 100644 --- a/SL/Controller/RequirementSpecComplexity.pm +++ b/SL/Controller/RequirementSpecComplexity.pm @@ -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' }); } # diff --git a/SL/Controller/RequirementSpecPredefinedText.pm b/SL/Controller/RequirementSpecPredefinedText.pm index 24d6f9110..6aebc8614 100644 --- a/SL/Controller/RequirementSpecPredefinedText.pm +++ b/SL/Controller/RequirementSpecPredefinedText.pm @@ -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' }); } # diff --git a/SL/Controller/RequirementSpecRisk.pm b/SL/Controller/RequirementSpecRisk.pm index eef69ee5e..6d2f22878 100644 --- a/SL/Controller/RequirementSpecRisk.pm +++ b/SL/Controller/RequirementSpecRisk.pm @@ -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' }); } # diff --git a/SL/Controller/RequirementSpecStatus.pm b/SL/Controller/RequirementSpecStatus.pm index debd18bab..eeda52475 100644 --- a/SL/Controller/RequirementSpecStatus.pm +++ b/SL/Controller/RequirementSpecStatus.pm @@ -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' }); } # diff --git a/SL/Controller/RequirementSpecType.pm b/SL/Controller/RequirementSpecType.pm index e1e6aeebb..18aa45afd 100644 --- a/SL/Controller/RequirementSpecType.pm +++ b/SL/Controller/RequirementSpecType.pm @@ -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' }); } #