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.
This commit is contained in:
2026-08-20 21:34:38 +03:00
parent 03ec13364c
commit 01931b9693
+4 -1
View File
@@ -2158,7 +2158,10 @@ function onBerSubTypeChange(sel) {
} else if (st === 'custom') {
body.innerHTML = `<input class="ber-hex w-full font-mono text-xs border border-gray-300 dark:border-slate-600 rounded px-1 py-1 dark:bg-slate-700 dark:text-slate-300" placeholder="hex" oninput="updateBerRow(this)">`;
} 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'));