From: Sven Schöling Date: Tue, 10 May 2016 11:08:37 +0000 (+0200) Subject: ClientJS: controller default auf leeren Controller X-Git-Tag: release-3.4.1~147 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=69f51bf0aaf0fcfa23a732f7524168f52e67bd5c;p=kivitendo-erp.git ClientJS: controller default auf leeren Controller Damit SL::ClientJS->new->render funktioniert --- diff --git a/SL/ClientJS.pm b/SL/ClientJS.pm index 335bf8163..91c9e1abe 100644 --- 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__