Creating a new image node without a title is permitted by current HEAD version of image_attach. Without a title the image nodes are difficult to locate, edit and delete from other parts of the drupal administration interface.

The following patch fixes the problem, by assuring that when a user uploads a new image, they also provide a value in the image title field.

CommentFileSizeAuthor
fix_require_image_title.diff494 bytesjsaints

Comments

jsaints’s picture

A problem with this patch is that it allows images to be uploaded before reporting the error. after the title is added to the form the image must be re-uploaded. It would be better to report the error (maybe with javascript?) before the image is uploaded to the server when the form is submitted.

drewish’s picture

how about just using the filename as the title if they didn't provide one?

walkah’s picture

Status: Needs review » Fixed

drewish: i like that approach better. committed a patch to do that.

Anonymous’s picture

Status: Fixed » Closed (fixed)