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:
f75f965
)
Controller::redirect_to: url_for nicht doppelt aufrufen, wenn ajax
author
Bernd Bleßmann
<bernd@kivitendo-premium.de>
Wed, 9 Oct 2019 08:53:57 +0000
(10:53 +0200)
committer
Bernd Bleßmann
<bernd@kivitendo-premium.de>
Wed, 9 Oct 2019 13:30:45 +0000
(15:30 +0200)
Macht zwar nichts, muss aber auch nicht.
SL/Controller/Base.pm
patch
|
blob
|
history
diff --git
a/SL/Controller/Base.pm
b/SL/Controller/Base.pm
index
5847b98
..
8b02ce0
100644
(file)
--- a/
SL/Controller/Base.pm
+++ b/
SL/Controller/Base.pm
@@
-54,7
+54,7
@@
sub redirect_to {
SL::Helper::Flash::delay_flash();
}
- return $self->render(SL::ClientJS->new->redirect_to($
self->url_for(@_)
)) if $::request->is_ajax;
+ return $self->render(SL::ClientJS->new->redirect_to($
url
)) if $::request->is_ajax;
print $::request->{cgi}->redirect($url);
}