diff options
author | Anders Lind <anders.lind@gmail.com> | 2016-03-01 19:55:29 +0100 |
---|---|---|
committer | Anders Lind <anders.lind@gmail.com> | 2016-03-01 19:55:29 +0100 |
commit | b5ce1a53767bc7067364defef2788050327edfb6 (patch) | |
tree | b373c1e269512a95db6c91c974aa12b2a5447712 /src | |
parent | a7d60d26331e80e04a571dabc992ca3f54857d3b (diff) | |
download | pfsense-b5ce1a53767bc7067364defef2788050327edfb6.zip pfsense-b5ce1a53767bc7067364defef2788050327edfb6.tar.gz |
Fix indexing of $mappings and fix column headers
Remove "$entry['iaid'] . " from $mappings[] since the IAID of the IA_NA != IAID of the IA_PD, please see note in https://redmine.pfsense.org/issues/4206#note-9
Add table header for the icon in the Delegated Prefixes section to fix alignment of the column headers.
Diffstat (limited to 'src')
-rw-r--r-- | src/usr/local/www/status_dhcpv6_leases.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/usr/local/www/status_dhcpv6_leases.php b/src/usr/local/www/status_dhcpv6_leases.php index 87c1ad4..8bb01b6 100644 --- a/src/usr/local/www/status_dhcpv6_leases.php +++ b/src/usr/local/www/status_dhcpv6_leases.php @@ -357,7 +357,7 @@ while ($i < $leases_count) { $prefixes[] = $entry; } else { $leases[] = $entry; - $mappings[$entry['iaid'] . $entry['duid']] = $entry['ip']; + $mappings[$entry['duid']] = $entry['ip']; } $l++; $i++; @@ -543,6 +543,7 @@ foreach ($leases as $data): <table class="table table-striped table-hover table-condensed sortable-theme-bootstrap" data-sortable> <thead> <tr> + <th><!-- icon --></th> <th><?=gettext("IPv6 Prefix")?></th> <th><?=gettext("IAID")?></th> <th><?=gettext("DUID")?></th> @@ -593,7 +594,7 @@ foreach ($prefixes as $data): <td><i class="fa <?=$icon?>"></i></td> <td> <?=$data['prefix']?> -<?php if ($mappings[$data['iaid'] . $data['duid']]): ?> +<?php if ($mappings[$data['duid']]): ?> <br /> <?=gettext('Routed To')?>: <?=$mappings[$data['iaid'] . $data['duid']]?> <?php endif; ?> |