Jelajahi Sumber

connections for remote/old addresses are hidden

root 9 bulan lalu
induk
melakukan
26dfd193c3
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      html/admin/devices/switchport-conn.php

+ 1 - 1
html/admin/devices/switchport-conn.php

@@ -43,7 +43,7 @@ print_editdevice_submenu($page_url,$id,$device['device_type'],$user_info['login'
 
 <?php
 
-$connections = get_records($db_link,"connections","device_id=$id ORDER BY port_id ASC");
+$connections = get_records_sql($db_link,"SELECT C.* FROM `connections` as C,`User_auth` as A WHERE A.id=C.auth_id AND A.deleted=0 AND C.device_id=$id ORDER BY C.port_id ASC");
 foreach ($connections as $key => $value) {
 print "<tr align=center>\n";
 print "<td class=\"data\" style='padding:0'><input type=checkbox name=f_id[] value='{$value['id']}'></td>\n";