diff --git a/app/devices/device_profiles.php b/app/devices/device_profiles.php
index 47f0317503..e125a67350 100644
--- a/app/devices/device_profiles.php
+++ b/app/devices/device_profiles.php
@@ -213,6 +213,9 @@
//echo "
\n";
//echo " \n";
//echo " | \n";
+ if ($_GET['show'] == "all" && permission_exists('device_profile_all')) {
+ echo th_order_by('domain_name', $text['label-domain'], $order_by, $order, $param);
+ }
echo th_order_by('device_profile_name', $text['label-device_profile_name'], $order_by, $order);
echo th_order_by('device_profile_enabled', $text['label-device_profile_enabled'], $order_by, $order);
echo th_order_by('device_profile_description', $text['label-device_profile_description'], $order_by, $order);
@@ -237,6 +240,15 @@
//echo " \n";
//echo " \n";
//echo " \n";
+ if ($_GET['show'] == "all" && permission_exists('device_profile_all')) {
+ if (strlen($_SESSION['domains'][$row['domain_uuid']]['domain_name']) > 0) {
+ $domain = $_SESSION['domains'][$row['domain_uuid']]['domain_name'];
+ }
+ else {
+ $domain = $text['label-global'];
+ }
+ echo " ".escape($domain)." | \n";
+ }
echo " ".escape($row['device_profile_name'])." | \n";
echo " ".escape($row['device_profile_enabled'])." | \n";
echo " ".escape($row['device_profile_description'])." | \n";