Skip to content

Commit 070f9ea

Browse files
committed
RDKBACCL-651 : Getting 500 Internal Server Error when clicked on Add Allowed device in Parental Control > Managed Devices Section
Reason for change : HostIDs count value is not assigned properly in jst file Test procedure: In Parental control, enable the Managed devices , click on the Add Allowed device , this page should load Risks : None Signed-off-by: ssiras826 <[email protected]>
1 parent b4e2ce4 commit 070f9ea

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

meta-rdk-mtk-bpir4/recipes-ccsp/ccsp/ccsp-webui-jst.bbappend

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,10 @@ do_install_append () {
1111
install -m 0755 ${S}/jst/actionHandler/ajaxSet_wizard_step2_onewifi.jst ${D}/usr/www2/actionHandler/ajaxSet_wizard_step2.jst
1212
install -m 0755 ${S}/jst/actionHandler/ajaxSet_wps_config_onewifi.jst ${D}/usr/www2/actionHandler/ajaxSet_wps_config.jst
1313
fi
14+
sed -i "s/count(\$IDs)-1/count(\$IDs)-2/g" ${D}/usr/www2/actionHandler/ajax_managed_devices.jst
15+
sed -i "s/count(\$IDs)-1/count(\$IDs)-2/g" ${D}/usr/www2/actionHandler/ajax_managed_services.jst
16+
sed -i "s/count(\$IDs)-1/count(\$IDs)-2/g" ${D}/usr/www2/actionHandler/ajax_port_forwarding.jst
17+
sed -i "/getInstanceIDs(\"Device.Hosts.Host.\")/a \$hostIDs=\$hostIDs[count(\$hostIDs)-2];" ${D}/usr/www2/managed_devices_add_computer_allowed.jst
18+
sed -i "/getInstanceIDs(\"Device.Hosts.Host.\")/a \$hostIDs=\$hostIDs[count(\$hostIDs)-2];" ${D}/usr/www2/managed_devices_add_computer_blocked.jst
19+
sed -i "s/\$clients_RSSI\[strtoupper(\$Host\[\$i.toString()\]\['PhysAddress'\])\]/\$Host\[\$i\]\['X_CISCO_COM_RSSI'\]/g" ${D}/usr/www2/connected_devices_computers.jst
1420
}

0 commit comments

Comments
 (0)