linkit icon indicating copy to clipboard operation
linkit copied to clipboard

Updating a Matrix field containing a Link field breaks publish page

Open CreateSean opened this issue 5 years ago • 1 comments

Craft 3.4.26 Linkit 1.1.11

I've added a new field to a matrix field that contains a linkit field and once I do that the publish page is broken with this error:

TypeError
Return value of fruitstudios\linkit\base\ElementLink::getSelectionLabel() must be of the type string, array returned

If I restore the DB everything is fine. However am now unable to update or change any matrix field that contains a LinkIt field

CreateSean avatar Jul 03 '20 19:07 CreateSean

I'm having a similar issue. I have a linkit field on a matrix field and I'm trying to get the linkit field data via GraphQL and getting this error in the GraphQL console:

Expected a value of type "String" but received: [].

Craft 3.4.22.1 Linkit 1.1.11

derekck avatar Aug 13 '20 15:08 derekck