projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70242f1
)
Layout/empty: empty.json und emty.html ermöglichen
author
Sven Schöling
<s.schoeling@linet-services.de>
Thu, 9 Jul 2015 14:52:56 +0000
(16:52 +0200)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Mon, 20 Jul 2015 14:37:26 +0000
(16:37 +0200)
SL/Controller/Layout.pm
patch
|
blob
|
history
diff --git
a/SL/Controller/Layout.pm
b/SL/Controller/Layout.pm
index
d5d0988
..
e92e861
100644
(file)
--- 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 });
}
}