v3.23.4: the event form's numeric option values (v3.22.0 regression)

esc() is string-only, and most EVENT_FORMS option values are numbers
({v:0,l:'Normal service'}, the ACCESSTECH list, ...): the shared event-form
renderer escaped them with esc(o.v), so opening any such event form threw
'str.replace is not a function' - in the Phone tab (pysimEventSendForm) and
the test-script step editor alike (both call the same builder).  Introduced
with v3.22.0, when the event action started using the Simulator's forms.

Option values (and the data-gr group) are stringified before escaping, the
pattern the sibling option builder already used; the emitted DOM values are
unchanged ("0", "10").

Test: event_forms.test.js renders every event form (Phone and step-editor
variants) and asserts a numeric option prefills selected - verified to fail
on the pre-fix code.  848 frontend + 830 Python; sw cache simple-v417.
This commit is contained in:
2026-10-07 13:44:31 +03:00
parent e8c991648d
commit cc335def00
5 changed files with 37 additions and 6 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
const CACHE = 'simple-v416';
const CACHE = 'simple-v417';
const URLS = [
'index.html',
'help.html',