Fix block numbering in forms

pull/1/head
yflory 3 years ago
parent 369567d509
commit e7a85d576b

@ -2152,6 +2152,9 @@ define([
h('span.cp-form-block-question-number', (n++)+'.'),
h('span', block.q || Messages.form_default)
]);
// Static blocks don't have questions ("q" is not used) so we can decrement n
if (isStatic) { n--; }
var editButtons, editContainer;
APP.formBlocks.push(data);

Loading…
Cancel
Save