Skip to content

Commit 3ec4c7d

Browse files
authored
Merge pull request #152 from neos/bugfix-identifier
BUGFIX: Bugfix fallback form element identifier
2 parents cd52f22 + 8d026c2 commit 3ec4c7d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Resources/Private/Fusion/NodeBased/NodeBasedForm.fusion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
prototype(Neos.Form.Builder:NodeBasedForm) < prototype(Neos.Form.Builder:Form) {
22
@context.formNode = ${q(node).closest('[instanceof Neos.Form.Builder:NodeBasedForm]').get(0)}
33
@context.formFusionPath = ${this.path}
4-
identifier = ${formNode.properties.identifier || 'form-' + pageNode.aggregateId.value}
4+
identifier = ${formNode.properties.identifier || 'form-' + formNode.aggregateId.value}
55
presetName = ${formNode.properties.preset ? formNode.properties.preset : 'default'}
66
formElementType = ${renderingMode.isEdit ? 'Neos.Form:FormEditMode' : 'Neos.Form:Form'}
77

Resources/Private/Fusion/NodeBased/NodeBasedFormElement.fusion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
prototype(Neos.Form.Builder:NodeBasedFormElement) < prototype(Neos.Fusion:Renderer) {
22
element {
33
@context.element = ${this}
4-
identifier = ${elementNode.properties.identifier || pageNode.aggregateId.value}
4+
identifier = ${elementNode.properties.identifier || elementNode.aggregateId.value}
55
label = ${elementNode.properties.label}
66
required = ${elementNode.properties.required}
77
defaultValue = ${elementNode.properties.defaultValue}

0 commit comments

Comments
 (0)