I believe this might be a bug in 4.5rc ...

Image Galleries:
Create images with PERSONAL Disabled.
Editing later by selecting PERSONAL enabled does not save as enabled.

Comments

fleed’s picture

I'm also having this problem, personal setting does not stick.

heather’s picture

i am having this trouble as well, and it is in dec now. hmm... i guess it hasn't been fixed.

i thought maybe it was a cache problem? guess not. any clues or pointers on how to fix this one?

sv3n@www.newsfrombabylon.com’s picture

I too suffer from this problem :(

sulleleven’s picture

I too can confirm this (4.5).

skorch’s picture

I'm having the same problem with Drupal 4.5.1 and Image.module 4.5

traemccombs’s picture

I also, can concur that I am having this problem with / $Id: image.module,v 1.132.2.3 2004/12/31 10:58:55 goba Exp $ on Drupal 4.5.0

When can we expect a fix! Or should I just expect to get triple my money back. :)
</joke>

edrex’s picture

Title: Image Galleries: Image created with PERSONAL: Disabled will not later update to PERSONAL: enabled » Image Galleries: "personal" field not updated.

The culprit is this bit of code at the beginning of image_validate (in image.module round about line 450):

  if ($node->nid) {
    $extra = image_load($node);
    foreach ($extra as $key => $value) {
    $node->$key = $value;
    }
  }

I changed it to:

  if ($node->nid) {
    $extra = image_load($node);
    foreach ($extra as $key => $value) {
      if ($key!="personal") {$node->$key = $value;}
    }
  }

I'm pretty new to drupal, so I can't guarantee that this won't have unexpected consequences, but it seems safe. Not sure why the module has this loop in the first place.

traemccombs’s picture

Wow! It worked just perfectly. Thanks so much for adding the fix. I'm sure the module coder problem needs to look at it or something before the changes can be rolled in.

One other little tiny thing.... Could you tell me how to make "Personal: enabled" the default method when uploading the pictures? I think this should also be a feature added to the admin > settings > image area as well.

Actually, grohk is looking for it now on IRC....

He found how to enable the: Create content > Image page for the "Personal: enabled" option, but not for admin > image | Fast upload (upload your files ) and then it spits out all the new image pages that have been added... Those all default to disable for the "Personal: " section.

Thanks again guys,
Trae

jnunn’s picture

You too have my thanks. This has been driving me a little crazy.

Zed Pobre’s picture

Just noting that this is effectively a patch, so the status can be changed.

walkah’s picture

Component: Code » gd toolkit
Status: Needs review » Closed (won't fix)