Hi there,

When setting an image field as mandatory, no red star is shown to the user when editing/adding a node containing this field.
Also, when the form is submitted without the mandatory image, the form returns with an error as expected, but no error class is set on the image field form item itself: the red border is missing.

Thanks.

Comments

tormu’s picture

Version: 5.x-2.1 » 5.x-2.6

Bump. This doesn't seem to be fixed yet, though it's quite standard issues for form items, right?

quicksketch’s picture

It's not fixed because the developers are no longer working on Drupal 5. This will remain unfixed unless an interested developer submits a patch. The "required" property does not work on "file" type elements anywhere in all of Drupal, it's actually a core bug that has only just been fixed in Drupal 7 I believe. So modules like ImageField and FileField have to include special logic to get it to operate properly. This bug is fixed in the Drupal 6 version of ImageField.

keesje’s picture

Status: Active » Closed (won't fix)

Thanks for the info, wont fix then.