Skip to content
Snippets Groups Projects

Issue #2537110 by jonhattan, bleen18: Fixed DrupalBehaviorError: attach ;...

+ 1
1
@@ -94,7 +94,7 @@ function focal_point_entity_update(EntityInterface $entity) {
$entity->{$field->getName()}->focal_point_original = join(',', $focal_point_original);
}
}
if ($focal_point) {
if ($focal_point && $item->width && $item->height) {
list($x, $y) = explode(',', $focal_point);
$focal_point_manager->saveCropEntity($x, $y, $item->width, $item->height, $crop);
}
Loading