freeside/FS/FS Record.pm,1.99,1.100
Kristian Hoffmann
khoff at pouncequick.420.am
Fri Apr 1 14:34:36 PST 2005
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory pouncequick:/tmp/cvs-serv31532
Modified Files:
Record.pm
Log Message:
so we can pass in a time if we're back-filling history records
Index: Record.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Record.pm,v
retrieving revision 1.99
retrieving revision 1.100
diff -u -d -r1.99 -r1.100
--- Record.pm 21 Mar 2005 21:55:34 -0000 1.99
+++ Record.pm 1 Apr 2005 22:34:32 -0000 1.100
@@ -1101,7 +1101,9 @@
}
sub _h_statement {
- my( $self, $action ) = @_;
+ my( $self, $action, $time ) = @_;
+
+ $time ||= time;
my @fields =
grep defined($self->getfield($_)) && $self->getfield($_) ne "",
@@ -1112,7 +1114,7 @@
"INSERT INTO h_". $self->table. " ( ".
join(', ', qw(history_date history_user history_action), @fields ).
") VALUES (".
- join(', ', time, dbh->quote(getotaker()), dbh->quote($action), @values).
+ join(', ', $time, dbh->quote(getotaker()), dbh->quote($action), @values).
")"
;
}
More information about the freeside-commits
mailing list