[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb: [1504] branches/1.2/LedgerSMB/Form.pm
- Subject: SF.net SVN: ledger-smb: [1504] branches/1.2/LedgerSMB/Form.pm
- From: ..hidden..
- Date: Wed, 05 Sep 2007 11:00:19 -0700
Revision: 1504
http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=1504&view=rev
Author: einhverfr
Date: 2007-09-05 10:59:58 -0700 (Wed, 05 Sep 2007)
Log Message:
-----------
Adding an idenFixing ->sort_columns()
Modified Paths:
--------------
branches/1.2/LedgerSMB/Form.pm
Modified: branches/1.2/LedgerSMB/Form.pm
===================================================================
--- branches/1.2/LedgerSMB/Form.pm 2007-09-04 16:49:06 UTC (rev 1503)
+++ branches/1.2/LedgerSMB/Form.pm 2007-09-05 17:59:58 UTC (rev 1504)
@@ -363,6 +363,9 @@
if ( $self->{sort} ) {
if (@columns) {
@columns = grep !/^$self->{sort}$/, @columns;
+ if ($self->{sort} !~ /^\d*$/){
+ $self->{sort} = $self->{dbh}->quote_identifier($self->{sort});
+ }
splice @columns, 0, 0, $self->{sort};
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.