Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision d38dee8d

Von Moritz Bunkus vor etwa 17 Jahren hinzugefügt

  • ID d38dee8d88775c83f64cd3c60df37d44cf607cdd
  • Vorgänger 49189bfb
  • Nachfolger 13d11cb9

Kosmetik.

Unterschiede anzeigen:

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