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:
642d247
)
ClientJS: controller default auf leeren Controller
author
Sven Schöling
<s.schoeling@linet-services.de>
Tue, 10 May 2016 11:08:37 +0000
(13:08 +0200)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Fri, 13 May 2016 14:48:48 +0000
(16:48 +0200)
Damit SL::ClientJS->new->render funktioniert
SL/ClientJS.pm
patch
|
blob
|
history
diff --git
a/SL/ClientJS.pm
b/SL/ClientJS.pm
index
335bf81
..
91c9e1a
100644
(file)
--- a/
SL/ClientJS.pm
+++ b/
SL/ClientJS.pm
@@
-9,8
+9,8
@@
use SL::JSON ();
use Rose::Object::MakeMethods::Generic
(
- scalar => [ qw(
controller
) ],
- 'scalar --get_set_init' => [ qw(_actions _flash _error) ],
+ scalar => [ qw() ],
+ 'scalar --get_set_init' => [ qw(
controller
_actions _flash _error) ],
);
my %supported_methods = (
@@
-244,6
+244,12
@@
sub error {
return $self;
}
+sub init_controller {
+ # fallback
+ require SL::Controller::Base;
+ SL::Controller::Base->new;
+}
+
1;
__END__