summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2002-06-30 07:16:29 +0000
committerivan <ivan>2002-06-30 07:16:29 +0000
commit33aa71dbc113342361b6872e9587945bbcfe88a3 (patch)
treea543a25b8b286687782b72337f24e36b69aad590
parent6914db4bdd641adcab054b3aa0508d482f3dab9e (diff)
get rid of unneeded Pg-cruft (don't use native Pg money type)
-rw-r--r--FS/FS/Record.pm11
1 files changed, 2 insertions, 9 deletions
diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm
index 5fa0a466a..3404a67fe 100644
--- a/FS/FS/Record.pm
+++ b/FS/FS/Record.pm
@@ -132,15 +132,8 @@ sub new {
my $hashref = $self->{'Hash'} = shift;
- foreach my $field ( $self->fields ) {
- $hashref->{$field}='' unless defined $hashref->{$field};
- #trim the '$' and ',' from money fields for Pg (belong HERE?)
- #(what about Pg i18n?)
- if ( driver_name =~ /^Pg$/i
- && $self->dbdef_table->column($field)->type eq 'money' ) {
- ${$hashref}{$field} =~ s/^\$//;
- ${$hashref}{$field} =~ s/\,//;
- }
+ foreach my $field ( grep defined($hashref->{$_}), $self->fields ) {
+ $hashref->{$field}='';
}
$self->_cache($hashref, shift) if $self->can('_cache') && @_;