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.
| Comment | File | Size | Author |
|---|---|---|---|
| fix_require_image_title.diff | 494 bytes | jsaints |
Comments
Comment #1
jsaints commentedA 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.
Comment #2
drewish commentedhow about just using the filename as the title if they didn't provide one?
Comment #3
walkah commenteddrewish: i like that approach better. committed a patch to do that.
Comment #4
(not verified) commented