From: jeff Date: Thu, 16 Sep 2010 04:18:13 +0000 (+0000) Subject: default registrations to 1 year X-Git-Tag: freeside_1_9_5~25 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=51f243befb6df099e3faee8aaac3a9ce39741652;p=freeside.git default registrations to 1 year --- diff --git a/FS/FS/part_export/domreg_opensrs.pm b/FS/FS/part_export/domreg_opensrs.pm index 40049cd54..4dad93909 100644 --- a/FS/FS/part_export/domreg_opensrs.pm +++ b/FS/FS/part_export/domreg_opensrs.pm @@ -379,6 +379,8 @@ Like most export functions, returns an error message on failure or undef on succ sub register { my ( $self, $svc_domain, $years ) = @_; + $years = 1 unless $years; #default to 1 year since we don't seem to pass it + return "Net::OpenSRS does not support period other than 1 year" if $years != 1; eval "use Net::OpenSRS;";