projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more options for netsapiens export, #14958
[freeside.git]
/
FS
/
FS
/
part_export
/
http_status.pm
diff --git
a/FS/FS/part_export/http_status.pm
b/FS/FS/part_export/http_status.pm
index
2d15231
..
5342106
100644
(file)
--- 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 ) = @_;
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;
{
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 );
}
my $req = HTTP::Request::Common::GET( $url );