diff --git a/html/includes/common/stp-ports.inc.php b/html/includes/common/stp-ports.inc.php
index 34b8639527..862b514d51 100644
--- a/html/includes/common/stp-ports.inc.php
+++ b/html/includes/common/stp-ports.inc.php
@@ -27,7 +27,8 @@ var grid = $("#stp-ports").bootgrid( {
post: function ()
{
return {
- id: "stp-ports"
+ id: "stp-ports",
+ device_id: ' . $device['device_id'] . ',
};
},
url: "ajax_table.php"
diff --git a/html/includes/table/stp-ports.inc.php b/html/includes/table/stp-ports.inc.php
index f3e31b5fbf..3a2113b0bc 100644
--- a/html/includes/table/stp-ports.inc.php
+++ b/html/includes/table/stp-ports.inc.php
@@ -1,8 +1,10 @@