X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FController%2FChart.pm;h=bd77e36890eb9335290fc7a1882ae97073fe282a;hb=ed45862002de7481692e3044553356857f947d5f;hp=274f2ea5671516c62e6b567fb7d528bd8a0824ec;hpb=eb07117b26f569d689835471cab6665e510e123e;p=kivitendo-erp.git 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;