projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c05e27
)
add h_date method too
author
ivan
<ivan>
Sat, 1 Dec 2007 01:32:07 +0000
(
01:32
+0000)
committer
ivan
<ivan>
Sat, 1 Dec 2007 01:32:07 +0000
(
01:32
+0000)
FS/FS/Record.pm
patch
|
blob
|
history
diff --git
a/FS/FS/Record.pm
b/FS/FS/Record.pm
index
7468cca
..
5a23e44
100644
(file)
--- a/
FS/FS/Record.pm
+++ b/
FS/FS/Record.pm
@@
-2074,6
+2074,19
@@
sub h_search {
}
+=item h_date ACTION
+
+Given an ACTION, either "insert", or "delete", returns the timestamp of the
+appropriate history record corresponding to this record, if any.
+
+=cut
+
+sub h_date {
+ my($self, $action) = @_;
+ my $h = $self->h_search($action);
+ $h ? $h->history_date : '';
+}
+
=back
=head1 SUBROUTINES