X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/7647d46acbc2a8253c0afeac5c706c3eb76995d5..d32410ac096b:/SL/Controller/Layout.pm diff --git a/SL/Controller/Layout.pm b/SL/Controller/Layout.pm index d5d0988f3..e92e861aa 100644 --- a/SL/Controller/Layout.pm +++ b/SL/Controller/Layout.pm @@ -8,7 +8,7 @@ use SL::JSON (); sub action_empty { my ($self) = @_; - if ($::form->{format} eq 'json') { + if ($::form->{format} eq 'json' || $::request->type eq 'json') { my $layout = { pre_content => $::request->{layout}->pre_content, start_content => $::request->{layout}->start_content, @@ -21,6 +21,8 @@ sub action_empty { }; $self->render(\ SL::JSON::to_json($layout), { type => 'json', process => 0 }); + } else { + $self->render(\'', { process => 0 }); } }