Some image fields don't use the standard widget, and have therefore no values for the focal point. An example for this is the "thumbnail" field provided by the media_entity module, which is filled programatically by various plugins (youtube, instagram, etc). We don't need to support adding a focal point to such images, but at the moment the focal_point module throws an exception while trying to save something invalid for those fields.

The attached patch simply checks that a field has focal point information available before saving it, which results in the special field types mentioned above being skipped.

CommentFileSizeAuthor
focal_point_media_entity.patch770 bytesfloretan

Comments

floretan created an issue. See original summary.

floretan’s picture

Status: Active » Needs review
it-cru’s picture

Patch solved problem together with 8.0.0-beta15, media_entity and inline_entity_form to handle focal point in a image media bundle with a image field.

  • bleen18 committed f889c38 on 8.x-1.x authored by floretan
    Issue #2564253 by floretan: Ignore fields using incompatible widgets
    
bleen’s picture

Status: Needs review » Fixed

...never marked as fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.