From 8775275ff15ee688d514d1cebc2deb1d0833509f Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 20 Feb 2017 22:12:49 -0700 Subject: [PATCH] Update device_edit.php --- app/devices/device_edit.php | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/app/devices/device_edit.php b/app/devices/device_edit.php index aadf0162f0..8dea222cc9 100644 --- a/app/devices/device_edit.php +++ b/app/devices/device_edit.php @@ -473,6 +473,18 @@ $device_vendor = device::get_vendor($device_mac_address); } + +//get the device line info for provision button + foreach($device_lines as $row) { + if (strlen($row['user_id']) > 0) { + $user_id = $row['user_id']; + } + if (strlen($row['server_address']) > 0) { + $server_address = $row['server_address']; + } + } + $sip_profile_name = 'internal'; + //show the header require_once "resources/header.php"; @@ -584,6 +596,7 @@ echo "\n"; echo "\n"; echo " \n"; + echo "  \n"; if (permission_exists("device_files")) { //get the template directory $prov = new provision; @@ -607,7 +620,6 @@ echo " \n"; //echo " "; } -// echo " \n"; if (permission_exists('device_add') && $action != "add") { echo " \n"; @@ -1414,7 +1426,7 @@ echo " }); \n"; // convert password fields to echo " function submit_form() {\n"; - echo " //run this when the form is submitted\n"; + echo " $('form#frm').submit();\n"; echo " }\n"; echo " function submit_form_2() {\n"; echo " $('input:password').css('visibility','hidden');\n";