Revision 1ff9e05e
Von Bernd Bleßmann vor fast 2 Jahren hinzugefügt
SL/Controller/CustomDataExport.pm | ||
---|---|---|
124 | 124 |
# helpers |
125 | 125 |
# |
126 | 126 |
|
127 |
sub init_query { |
|
128 |
|
|
129 |
# If ReportGenerator is used, then set form variables from its hiddens so that they are available here. |
|
130 |
if ($::form->{report_generator_variable_list}) { |
|
131 |
foreach my $key (split m/ +/, $::form->{report_generator_variable_list}) { |
|
132 |
$::form->{$key} = $::form->{"report_generator_hidden_${key}"}; |
|
133 |
} |
|
134 |
} |
|
135 |
|
|
136 |
$::form->{id} ? SL::DB::CustomDataExportQuery->new(id => $::form->{id})->load : SL::DB::CustomDataExportQuery->new |
|
137 |
} |
|
138 |
|
|
127 |
sub init_query { $::form->{id} ? SL::DB::CustomDataExportQuery->new(id => $::form->{id})->load : SL::DB::CustomDataExportQuery->new } |
|
139 | 128 |
sub init_parameters { [ sort_by { lc $_->name } @{ $_[0]->query->parameters // [] } ] } |
140 | 129 |
|
141 | 130 |
sub init_queries { |
Auch abrufbar als: Unified diff
Revert "Benutzerdefinierte Datenexporte mit ReportGenerator: Workaround Form-Variables"
Tamino hat zwischenzeitlich eine andere Möglichkeit eingebaut.
This reverts commit adc2272e1aed22abb7719c4b4f31313b0afee929.