Index: openacs-4/packages/xowiki/tcl/form-field-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/form-field-procs.tcl,v diff -u -r1.284.2.257 -r1.284.2.258 --- openacs-4/packages/xowiki/tcl/form-field-procs.tcl 18 Jul 2024 07:56:32 -0000 1.284.2.257 +++ openacs-4/packages/xowiki/tcl/form-field-procs.tcl 18 Jul 2024 10:02:29 -0000 1.284.2.258 @@ -4290,8 +4290,19 @@ for (const hiddenField of targetNode. querySelectorAll('input[type=hidden]')) { if (hiddenField.name === fieldId) { + /* Special behavior for inline editors: we + need to adjust the name of the hidden + formfield generated by TinyMCE */ replacedField = hiddenField; - replacedField.name = `${fieldName}.${fieldNum}`; + if (replacedField.name.endsWith(`.${fieldNum}`)) { + /* Simple repeat */ + replacedField.name = `${fieldName}.${fieldNum}`; + } else { + /* Nested repeat */ + const nameTokens = replacedField.name.split('.'); + const nestedName = nameTokens[nameTokens.length - 1]; + replacedField.name = `${fieldName}.${fieldNum}.${nestedName}`; + } break; } fieldNum++;