X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/eb07117b26f569d689835471cab6665e510e123e..c954dea7c1b814d66b8c31d04fa70a1bbbcce71e:/SL/Controller/Chart.pm diff --git a/SL/Controller/Chart.pm b/SL/Controller/Chart.pm index 274f2ea56..bd77e3689 100644 --- a/SL/Controller/Chart.pm +++ b/SL/Controller/Chart.pm @@ -10,7 +10,7 @@ use SL::Locale::String qw(t8); use SL::JSON; use Rose::Object::MakeMethods::Generic ( - 'scalar --get_set_init' => [ qw(charts models chart) ], + 'scalar --get_set_init' => [ qw(charts models chart filter) ], ); sub action_ajax_autocomplete { @@ -54,7 +54,7 @@ sub action_ajax_autocomplete { } sub action_test_page { - $_[0]->render('chart/test_page'); + $_[0]->render('chart/test_page', pre_filled_chart => SL::DB::Manager::Chart->get_first); } sub action_chart_picker_search { @@ -111,4 +111,6 @@ sub init_models { ); } +sub init_filter { $_[0]->models->filtered->laundered } + 1;