Skip to content

Commit 1d9d487

Browse files
Merge pull request #59 from nicoeg/patch-2
Use `singularLabel` for field name when editing
2 parents e1d05de + 1191ad2 commit 1d9d487

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

resources/js/components/RelationshipFormItem.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
'attribute': (this.value[attrib].meta.component === "file-field") ?
8181
attrib + '?' + this.id :
8282
this.field.attribute + '_' + this.id + '_' + attrib, // This is needed to enable delete link for file without triggering duplicate id warning
83-
'name': this.field.attribute + '[' + this.id + '][' + attrib + ']',
83+
'name': this.value[attrib].meta.singularLabel,
8484
'deletable': this.modelId > 0, // Hide delete button if model Id is not present, i.e. new model
8585
'attrib': attrib
8686
}

0 commit comments

Comments
 (0)