[freeside-commits] freeside/FS/FS option_Common.pm,1.1,1.2
Ivan,,,
ivan at wavetail.420.am
Wed Sep 7 03:25:31 PDT 2005
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail:/tmp/cvs-serv22826
Modified Files:
option_Common.pm
Log Message:
fix bug with new option_Common stuff, forgot to prefix FS::
Index: option_Common.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/option_Common.pm,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- option_Common.pm 17 Aug 2005 22:23:45 -0000 1.1
+++ option_Common.pm 7 Sep 2005 10:25:29 -0000 1.2
@@ -81,7 +81,7 @@
# $dbh->rollback if $oldAutoCommit;
# return $@;
#}
- my $option_record = $option_table->new($href);
+ my $option_record = "FS::$option_table"->new($href);
$error = $option_record->insert;
if ( $error ) {
@@ -124,7 +124,7 @@
}
my $pkey = $self->pkey;
- my $option_table = $self->option_table;
+ #my $option_table = $self->option_table;
foreach my $obj ( $self->option_objects ) {
my $error = $obj->delete;
@@ -198,7 +198,7 @@
# $dbh->rollback if $oldAutoCommit;
# return $@;
#}
- my $new = $option_table->new($href);
+ my $new = "FS::$option_table"->new($href);
$new->optionnum($old->optionnum) if $old;
my $error = $old ? $new->replace($old) : $new->insert;
More information about the freeside-commits
mailing list