projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4159233
)
Erweiterte Liste von erlaubten Spaltennamen, nach denen sortiert werden darf.
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Wed, 21 Feb 2007 15:58:41 +0000
(15:58 +0000)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Wed, 21 Feb 2007 15:58:41 +0000
(15:58 +0000)
SL/AR.pm
patch
|
blob
|
history
diff --git
a/SL/AR.pm
b/SL/AR.pm
index
45c4453
..
f828270
100644
(file)
--- a/
SL/AR.pm
+++ b/
SL/AR.pm
@@
-605,7
+605,12
@@
sub ar_transactions {
my @a = (transdate, invnumber, name);
push @a, "employee" if $form->{l_employee};
my $sortorder = join(', ', @a);
- $sortorder = $form->{sort} if ($form->{sort} && grep({ $_ eq $form->{sort} } @a));
+
+ if (grep({ $_ eq $form->{sort} }
+ qw(id transdate duedate invnumber ordnumber name
+ datepaid employee shippingpoint shipvia))) {
+ $sortorder = $form->{sort};
+ }
$query .= " WHERE $where ORDER by $sortorder";