bug fix domain name when using devices showall (#7259)

When the 'Show All' button is clicked the display of devices is using the current domain name instead of the domain name that belongs to the device
This commit is contained in:
frytimo 2025-02-18 18:01:19 -04:00 committed by GitHub
parent 2661ad7bf0
commit 679b407562
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -419,7 +419,7 @@
echo " </td>\n";
}
if (!empty($_GET['show']) && $_GET['show'] == "all" && permission_exists('device_all')) {
echo " <td>".escape($domain_name)."</td>\n";
echo " <td>".escape($row['domain_name'])."</td>\n";
}
echo " <td class='no-wrap'>";
echo permission_exists('device_edit') ? "<a href='".$list_row_url."'>".escape(format_device_address($row['device_address']))."</a>" : escape(format_device_address($row['device_address']));