X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fview%2Fsvc_Common.html;h=9c4d71eb8e9b4e2967846204ba826dc276970199;hp=7e300b049f970208096a7558df3fe89cc741b5fe;hb=11bbf29de447fe39e9d7155fe280a0df70fa8c3c;hpb=3d0a1bb06b895c5be6e3f0517d355442a6b1e125 diff --git a/httemplate/view/svc_Common.html b/httemplate/view/svc_Common.html index 7e300b049..9c4d71eb8 100644 --- a/httemplate/view/svc_Common.html +++ b/httemplate/view/svc_Common.html @@ -25,6 +25,17 @@ if ( UNIVERSAL::can("FS::$table", 'table_info') ) { } keys %$fields; $opt{'labels'} = \%labels; + + #transform FS::svc_* table_info's structure into one svc_Common.html likes + delete $fields->{svcnum}; + $opt{'fields'} = [ map { ref $fields->{$_} + ? { field => $_, + %{ $fields->{$_} } + } + : $_ + } keys %$fields + ]; + }