From: levinse Date: Sun, 23 Jan 2011 00:49:12 +0000 (+0000) Subject: bug fix my previous commit for RT7794 X-Git-Tag: freeside_2_1_2~113 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=fde8ce7591cfe115dc12b9d5ea9ff896228a81e0;p=freeside.git bug fix my previous commit for RT7794 --- diff --git a/httemplate/edit/phone_device.html b/httemplate/edit/phone_device.html index c42e714e2..4aec63e5a 100644 --- a/httemplate/edit/phone_device.html +++ b/httemplate/edit/phone_device.html @@ -95,6 +95,8 @@ $js .= "\"); } } + + devicepart_changed(document.getElementById('devicepart')); "; $js; diff --git a/httemplate/edit/process/phone_device.html b/httemplate/edit/process/phone_device.html index df9d5e793..689a65ede 100644 --- a/httemplate/edit/process/phone_device.html +++ b/httemplate/edit/process/phone_device.html @@ -10,6 +10,10 @@ %> <%init> +if($cgi->param('sel_mac_addr') && !$cgi->param('mac_addr')) { + $cgi->param('mac_addr',$cgi->param('sel_mac_addr')); +} + # :/ needs agent-virt so you can't futz with arbitrary devices die "access denied" diff --git a/httemplate/elements/select-mac.html b/httemplate/elements/select-mac.html index 3153ca7cd..8b1c71fea 100644 --- a/httemplate/elements/select-mac.html +++ b/httemplate/elements/select-mac.html @@ -6,7 +6,7 @@ <% include( '/elements/input-text.html', %opt, 'type'=>'text' ) %> -