X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Ftower.pm;h=a05160c4c4edd2c80bab785c73c8de370513b216;hb=227953e3a6ee41683ea06b3f440946d4007898c3;hp=5497c7217ec5aa72337b0de6c4dc774d584bc09f;hpb=df1ebf662a9fc3f89503036e0dbf6833c1b95f9e;p=freeside.git diff --git a/FS/FS/tower.pm b/FS/FS/tower.pm index 5497c7217..a05160c4c 100644 --- a/FS/FS/tower.pm +++ b/FS/FS/tower.pm @@ -1,10 +1,10 @@ package FS::tower; +use base qw( FS::o2m_Common FS::Record ); use strict; -use base qw( FS::o2m_Common FS::Record ); +use List::Util qw( max ); use FS::Record qw( qsearch qsearchs ); use FS::tower_sector; -use List::Util qw( max ); =head1 NAME @@ -143,7 +143,7 @@ default sector. sub process_o2m { my $self = shift; my %opt = @_; - my $params = $opt{params}; + my $params = +{ %{$opt{params}} }; # Adjust to make sure our default sector is in the list. my $default_sector = $self->default_sector