Fix block numbering in forms
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…
Reference in New Issue