From 01931b96935d44bbc79fabd53ae0384ad92c2020 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D1=82=D0=BE=D0=BD=20=D0=A2=D1=80=D0=BE=D1=88?= =?UTF-8?q?=D0=B8=D0=BD?= Date: Thu, 20 Aug 2026 21:34:38 +0300 Subject: [PATCH] Fix Error Action proactive: filter REFRESH out of allowed commands When Error Action (tag 82) uses the Proactive command subtype, only DISPLAY TEXT and PLAY TONE are allowed per TS 102 226 Table 5.9. Pass allowed=['display','tone'] to buildBerPcHtml for error-type rows. --- frontend/index.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/index.html b/frontend/index.html index 6f8d9b6..61a935d 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -2158,7 +2158,10 @@ function onBerSubTypeChange(sel) { } else if (st === 'custom') { body.innerHTML = ``; } else { - body.innerHTML = buildBerPcHtml(); + const row = sel.closest('.ber-row'); + const type = row.querySelector('.ber-type').value; + const allowed = type === 'error' ? ['display','tone'] : undefined; + body.innerHTML = buildBerPcHtml(allowed); const pc = body.querySelector('.ber-pc'); berPopulateDevices(pc); onBerPcTypeChange(pc.querySelector('.ber-pc-type'));