diff options
author | jeff <jeff> | 2009-03-18 00:30:43 +0000 |
---|---|---|
committer | jeff <jeff> | 2009-03-18 00:30:43 +0000 |
commit | 037c3acd250f637182019d0a74361d5420f29c52 (patch) | |
tree | 581d910db05d77eb6208e5cd058ae5c1831eed25 /httemplate/edit | |
parent | e61679ab66b5e1e2db39791117440d7dfce41045 (diff) |
hide unused usage columns
Diffstat (limited to 'httemplate/edit')
-rwxr-xr-x | httemplate/edit/part_svc.cgi | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/httemplate/edit/part_svc.cgi b/httemplate/edit/part_svc.cgi index e0fb615b1..deb3c80f9 100755 --- a/httemplate/edit/part_svc.cgi +++ b/httemplate/edit/part_svc.cgi @@ -131,7 +131,14 @@ that field. % % #yucky kludge % my @fields = defined( dbdef->table($layer) ) -% ? grep { $_ ne 'svcnum' } fields($layer) +% ? grep { +% $_ ne 'svcnum' && +% ( !FS::part_svc->svc_table_fields($layer) +% ->{$_}->{disable_part_svc_column} || +% $part_svc->part_svc_column($_)->columnflag +% ) +% } +% fields($layer) % : (); % push @fields, 'usergroup' if $layer eq 'svc_acct'; #kludge % $part_svc->svcpart($clone) if $clone; #haha, undone below |