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.
It's a bit odd that the field isn't marked as required when it is.
Comment | File | Size | Author |
---|---|---|---|
#2 | image.required.2.patch | 615 bytes | sun |
Comments
Comment #1
joachim CreditAttribution: joachim commentedHmm, turned out doing this:
'#required' => !isset($node->images),
isn't enough; it causes preview of a new image node to fail validation. Not sure this is worth the effort to figure out; postponing.
Comment #2
sunSo this fails when previewing?