Skip to content
Snippets Groups Projects

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

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -94,7 +94,7 @@ function focal_point_entity_update(EntityInterface $entity) {
@@ -94,7 +94,7 @@ function focal_point_entity_update(EntityInterface $entity) {
$entity->{$field->getName()}->focal_point_original = join(',', $focal_point_original);
$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);
list($x, $y) = explode(',', $focal_point);
$focal_point_manager->saveCropEntity($x, $y, $item->width, $item->height, $crop);
$focal_point_manager->saveCropEntity($x, $y, $item->width, $item->height, $crop);
}
}
Loading