diff options
author | jeff <jeff> | 2009-10-05 14:01:05 +0000 |
---|---|---|
committer | jeff <jeff> | 2009-10-05 14:01:05 +0000 |
commit | 8941cdf14a441e17e2c61e41beb3e7bdbaa0988e (patch) | |
tree | ce8b2d1e895845796466f1ad4d0142c8211910dd /httemplate/edit | |
parent | 331e3441a2eb49396ed3234da33022ce25244974 (diff) |
low hanging fruit: restore router virtual fields (and svcnum) in 1.9 RT#5960
Diffstat (limited to 'httemplate/edit')
-rwxr-xr-x | httemplate/edit/router.cgi | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/httemplate/edit/router.cgi b/httemplate/edit/router.cgi index 19e63b3e8..d1376780f 100755 --- a/httemplate/edit/router.cgi +++ b/httemplate/edit/router.cgi @@ -10,10 +10,12 @@ 'fields' => [ { 'field'=>'routername', 'type'=>'text', 'size'=>32 }, { 'field'=>'agentnum', 'type'=>'select-agent' }, + { 'field'=>'svcnum', 'type'=>'hidden' }, ], 'error_callback' => $callback, 'edit_callback' => $callback, 'new_callback' => $callback, + 'html_table_bottom' => $html_table_bottom, ) %> <%init> @@ -41,4 +43,11 @@ my $callback = sub { } }; +my $html_table_bottom = sub { + my $router = shift; + foreach my $field ($router->virtual_fields) { + $html .= $router->pvf($field)->widget('HTML', 'edit', $router->get($field)); + } + $html; +}; </%init> |