Thanks for this great module, especially for the extensive tpl files

I can successfully upload lots of files without titles, but when I got back into 'Images Management' to move any around, or upload more, it says the title is required.. Am I overlooking a 2nd title setting somewhere? This is forcing users to put titles on albums when the theme isn't really designed for image titles.

Suggestions?

...side note, you should consider adding the word 'Gallery' to your module, like 'Photo Album Gallery'.. I think a LOT of people are overlooking this great module from what I can tell in the forums.. you might get more community support and patches.

Best Regards

Comments

eastcn’s picture

Thank you for your suggestions.
Change of name may be not a good idea, it has been used almost a year.

virtualdrupal’s picture

understandable..

The bug fix for this issue is on line 250 of photos.edit.inc, change #required to FALSE

w00’s picture

Version: 6.x-2.x-dev » 6.x-2.6

Having a problem with "Image title field is required." message.

On Images Management tab, re-sort the images (in my case by clicking "weight" twice for ASCending).

Change an image's weight (for example).

Click "Confirm the change".

Page comes back with "Image title field is required," even though the field was populated.

Worse, (most of) the image titles are now blank. Only the images with weight of -5 (the lowest weight of any on the page) are not blank.

I've spent a ridiculous amount of time trying to locate the source of the error within the code. I'm now guessing it's in a theme file, but don't know where to look.

Changing the #required to FALSE would likely allow Photo Album to erase the titles I've already entered.

Anyone know where to look to fix this?

Thanks

nathaniel’s picture

Version: 6.x-2.6 » 7.x-3.x-dev
Status: Active » Fixed

In the photos.edit.inc file around line 400 remove or change to FALSE:
'#required' => TRUE

<?php
    $form['photos'][$image->fid]['title'] = array(
      '#title' => t('Image title'),
      '#type' => 'textfield',
      '#default_value' => isset($image->title) ? $image->title : '',
      '#required' => FALSE
    );
?>

The default title will be pre filled and saved if title is already set.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.