Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If you submit an entity form that has a printable area field and do not select the crop region, you will get a PDO exception that an incorrect integer value was detected. This is because the X and Y coordinate columns have a NULL value.
I've looked through the code for an obvious place to insert a restriction but nothing stands out thus far. Does this belong in the hook_field_presave() implementation?