Revision bea937db
Von Bernd Bleßmann vor mehr als 1 Jahr hinzugefügt
SL/Controller/CustomDataExport.pm | ||
---|---|---|
124 | 124 |
# helpers |
125 | 125 |
# |
126 | 126 |
|
127 |
sub init_query { $::form->{id} ? SL::DB::CustomDataExportQuery->new(id => $::form->{id})->load : SL::DB::CustomDataExportQuery->new } |
|
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 |
|
|
128 | 139 |
sub init_parameters { [ sort_by { lc $_->name } @{ $_[0]->query->parameters // [] } ] } |
129 | 140 |
|
130 | 141 |
sub init_queries { |
Auch abrufbar als: Unified diff
Benutzerdefinierte Datenexporte mit ReportGenerator: Workaround Form-Variables