From: Moritz Bunkus Date: Thu, 12 Jan 2017 09:27:37 +0000 (+0100) Subject: ChartPicker: Test-Seite um vorausgefüllte Picker ergänzt X-Git-Tag: release-3.5.4~1732 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=a18b9450d56727749a09c845204df2885a687fc2;p=kivitendo-erp.git ChartPicker: Test-Seite um vorausgefüllte Picker ergänzt --- diff --git a/SL/Controller/Chart.pm b/SL/Controller/Chart.pm index 624a65b1d..bd77e3689 100644 --- a/SL/Controller/Chart.pm +++ b/SL/Controller/Chart.pm @@ -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 { diff --git a/templates/webpages/chart/test_page.html b/templates/webpages/chart/test_page.html index 4fc46887d..8d95591d0 100644 --- a/templates/webpages/chart/test_page.html +++ b/templates/webpages/chart/test_page.html @@ -45,6 +45,11 @@ S [% i %]: [% L.chart_picker('credit_' _ i) %] -    H [% i %]: [% L.c [% END %]

+

+Pre-filled chart object: [% L.chart_picker('pre_filled_chart_object', pre_filled_chart, style=style) %]
+Pre-filled chart ID: [% L.chart_picker('pre_filled_chart_id', pre_filled_chart.id, style=style) %]
+

+ -