projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Vitelity DID selection improvements, RT4868
[freeside.git]
/
FS
/
FS
/
part_export
/
domreg_opensrs.pm
diff --git
a/FS/FS/part_export/domreg_opensrs.pm
b/FS/FS/part_export/domreg_opensrs.pm
index
6554991
..
76f0059
100644
(file)
--- 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;";