wintercms / wn-translate-plugin

Translate plugin for Winter CMS
MIT License
14 stars 18 forks source link

Fix translations conflicting between nested fields and translatable root fields of the same name #51

Closed bennothommo closed 1 year ago

bennothommo commented 1 year ago

If a root field that is marked as translatable has the same name as a field in a nested form, the nested field was previously also appearing as translatable. On save, the value of the nested field would overwrite the value of the root field. This should fix this from occurring

bennothommo commented 1 year ago

@mjauvin I noticed you had added the original !$widget->isNested call to the outside fields, but hadn't added it to the other fields. Just wondering if there was a particular reason for that, in case I'm missing something obvious?