projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
adfa145
)
svc_cable service have a single serial / MAC / model, not one-to-many devices like...
author
Ivan Kohler
<ivan@freeside.biz>
Tue, 10 Sep 2013 08:42:31 +0000
(
01:42
-0700)
committer
Ivan Kohler
<ivan@freeside.biz>
Tue, 10 Sep 2013 08:42:31 +0000
(
01:42
-0700)
httemplate/view/svc_Common.html
patch
|
blob
|
history
diff --git
a/httemplate/view/svc_Common.html
b/httemplate/view/svc_Common.html
index
7e300b0
..
9c4d71e
100644
(file)
--- 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
+ ];
+
}
</%init>