X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_export%2Fhttp_status.pm;h=5342106b467032fcbd3ba4fa1426da77162aea15;hb=bdb7b4bf619b14291bdd44919a1a8121ce06df33;hp=2d1523123d91cb401da402e17239bb8cd3799dc5;hpb=72deba42ac5847c2a6bdeea20157035b8f9df7ae;p=freeside.git diff --git a/FS/FS/part_export/http_status.pm b/FS/FS/part_export/http_status.pm index 2d1523123..5342106b4 100644 --- a/FS/FS/part_export/http_status.pm +++ b/FS/FS/part_export/http_status.pm @@ -27,12 +27,17 @@ sub rebless { shift; } sub export_getstatus { my( $self, $svc_x, $htmlref, $hashref ) = @_; - my $url = $self->option('url'); + my $url; + my $urlopt = $self->option('url'); + no strict 'vars'; { no strict 'refs'; ${$_} = $svc_x->getfield($_) foreach $svc_x->fields; + if ( $svc_x->table eq 'svc_dsl' ) { + ${$_} = $svc_x->$_() foreach (qw( gateway_access_or_phonenum )); + } - $url = eval(qq($url)); + $url = eval(qq("$urlopt")); } my $req = HTTP::Request::Common::GET( $url );