Revision d38dee8d
Von Moritz Bunkus vor etwa 17 Jahren hinzugefügt
SL/OE.pm | ||
---|---|---|
149 | 149 |
} |
150 | 150 |
|
151 | 151 |
my $sortorder = join(', ', ("o.id", $form->sort_columns("transdate", $ordnumber, "name"))); |
152 |
my %allowed_sort_columns = |
|
153 |
("transdate" => "o.transdate", |
|
154 |
"reqdate" => "o.reqdate", |
|
155 |
"id" => "o.id", |
|
156 |
"ordnumber" => "o.ordnumber", |
|
157 |
"quonumber" => "o.quonumber", |
|
158 |
"name" => "ct.name", |
|
159 |
"employee" => "e.name", |
|
160 |
"salesman" => "e.name", |
|
161 |
"shipvia" => "o.shipvia", |
|
162 |
"transaction_description" => "o.transaction_description"); |
|
152 |
my %allowed_sort_columns = ( |
|
153 |
"transdate" => "o.transdate", |
|
154 |
"reqdate" => "o.reqdate", |
|
155 |
"id" => "o.id", |
|
156 |
"ordnumber" => "o.ordnumber", |
|
157 |
"quonumber" => "o.quonumber", |
|
158 |
"name" => "ct.name", |
|
159 |
"employee" => "e.name", |
|
160 |
"salesman" => "e.name", |
|
161 |
"shipvia" => "o.shipvia", |
|
162 |
"transaction_description" => "o.transaction_description" |
|
163 |
); |
|
163 | 164 |
if ($form->{sort} && grep($form->{sort}, keys(%allowed_sort_columns))) { |
164 | 165 |
$sortorder = $allowed_sort_columns{$form->{sort}}; |
165 | 166 |
} |
Auch abrufbar als: Unified diff
Kosmetik.