From: ivan Date: Fri, 14 Jul 2006 03:27:48 +0000 (+0000) Subject: this should fix radius group editing and the "Reference found where even-sized list... X-Git-Tag: BEFORE_FINAL_MASONIZE~78 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=283be8eddb1cb0d1af79822a36914e56f861d44d this should fix radius group editing and the "Reference found where even-sized list expected at /usr/local/share/perl/5.8.4/FS/svc_Common.pm line 473" error --- diff --git a/FS/FS/svc_Common.pm b/FS/FS/svc_Common.pm index f2e1b9adb..c1c482d72 100644 --- a/FS/FS/svc_Common.pm +++ b/FS/FS/svc_Common.pm @@ -470,7 +470,7 @@ sub setx { my $self = shift; my $x = shift; my @x = ref($x) ? @$x : ($x); - my %coderef = @_ ? shift : {}; + my $coderef = scalar(@_) ? shift : {}; my $error = $self->ut_numbern('svcnum') @@ -490,8 +490,8 @@ sub setx { my $columnname = $part_svc_column->columnname; my $columnvalue = $part_svc_column->columnvalue; - if ( exists( $coderef{columnname} ) ) { - &{ $coderef{$columnname} }( $self, $columnvalue); + if ( exists( $coderef->{$columnname} ) ) { + &{ $coderef->{$columnname} }( $self, $columnvalue); } else { $self->setfield( $columnname, $columnvalue ); }