projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
484b993
)
so we can pass in a time if we're back-filling history records
author
khoff
<khoff>
Fri, 1 Apr 2005 22:34:32 +0000
(22:34 +0000)
committer
khoff
<khoff>
Fri, 1 Apr 2005 22:34:32 +0000
(22:34 +0000)
FS/FS/Record.pm
patch
|
blob
|
history
diff --git
a/FS/FS/Record.pm
b/FS/FS/Record.pm
index
3e7da0d
..
2b74da4
100644
(file)
--- a/
FS/FS/Record.pm
+++ b/
FS/FS/Record.pm
@@
-1101,7
+1101,9
@@
sub check {
}
sub _h_statement {
}
sub _h_statement {
- my( $self, $action ) = @_;
+ my( $self, $action, $time ) = @_;
+
+ $time ||= time;
my @fields =
grep defined($self->getfield($_)) && $self->getfield($_) ne "",
my @fields =
grep defined($self->getfield($_)) && $self->getfield($_) ne "",
@@
-1112,7
+1114,7
@@
sub _h_statement {
"INSERT INTO h_". $self->table. " ( ".
join(', ', qw(history_date history_user history_action), @fields ).
") VALUES (".
"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).
")"
;
}
")"
;
}