Skip to content

Commit 8013474

Browse files
committed
Fix issue where selecting new device in rnav caused exception
Correct window.location redirect syntax
1 parent 88f4fba commit 8013474

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

module.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<module>
22
<rawname>sccp_manager</rawname>
33
<name>SCCP Manager</name>
4-
<version>14.3.0.27</version>
4+
<version>14.3.0.28</version>
55
<type>setup</type>
66
<category>SCCP Connectivity</category>
77
<publisher>Steve Lad, Alex GP</publisher>
@@ -33,6 +33,7 @@
3333
* Version 14.3.0.25 * - Fix Issue 55
3434
* Version 14.3.0.26 * - Fix Issue 54
3535
* Version 14.3.0.27 * - Standardise treatment of SIP and SCCP hardware.
36+
* Version 14.3.0.28 * - Fix issue with RNav which caused exception with new device
3637
</changelog>
3738
<location>https://github.com/chan-sccp/sccp_manager</location>
3839
<supported>

views/hardware.rnav.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,17 @@
1717
class="table">
1818
<thead>
1919
<tr>
20-
<th data-sortable="true" data-field="mac"><?php echo _('SEP ID')?></th>
20+
<th data-sortable="true" data-field="name"><?php echo _('SEP ID')?></th>
2121
<th data-sortable="true" data-field="description"><?php echo _('Descriptions')?></th>
2222
</tr>
2323
</thead>
2424
</table>
2525
<script type="text/javascript">
2626
$("#sccpnavgrid").on('click-row.bs.table',function(e,row,elem){
27-
window.location = '?display=sccp_phone&tech_hardware=cisco&id='+row['mac'];
27+
if (row['new_hw'] == 'Y' ) {
28+
window.location = '?display=sccp_phone&tech_hardware=cisco&new_id=' +row['name'] +'&' +row['type'];
29+
} else {
30+
window.location = '?display=sccp_phone&tech_hardware=cisco&id='+row['name'];
31+
};
2832
})
2933
</script>

0 commit comments

Comments
 (0)