sebastian-lenz / craft-linkfield

Link field for Craft 3
MIT License
122 stars 65 forks source link

Saving in Craft 4 Element Slideout Container nested in Matrix #239

Open dustinwalker opened 1 year ago

dustinwalker commented 1 year ago

PHP: 8.1.8 Typed link field: 2.1.4 Craft CMS: 4.2.5.1

If editing an entry from the quick edit slide-out panel (e.g. double-clicking a related entry) and editing an existing link nested inside of a Matrix field, it seems to be saving the linkedId value as NULL. The type column is correctly saved as "entry". If we go directly to the entry (not in the slideout modal container), everything works as expected.

From the slideout container, if we remove the containing block, save the entry, go back into edit the entry and add a new block and linked field value, it saves correctly and successfully.

A field nested in a SuperTable field behaves similarly. A Link Field directly attached to the entry type works correctly every time in the quick edit panel.

Happy to send a screencast privately if helpful or clarify any steps/issues above.

Thanks!