This might be by design, but might be not.

When flagging is available in the edit node page, you can change the status of the flag, but when you preview your changes, the flag resets to the original value.

Thanks for this module

Comments

mooffie’s picture

Assigned: Unassigned » mooffie

I can reproduce this bug. I hope to investigate this soon.

mooffie’s picture

(I know why this happens. It's explained here. However, I need to rewrite that part anyway, to accomodate for 'default flags' (there's a separate issue), that's why I'm not providing a quick patch.)

quicksketch’s picture

Status: Active » Fixed

Thanks mooffie for pointing out that item. I patched both Drupal 6 and Drupal 5, even though it's not necessary in Drupal 5

http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/flag/flag.m...

mooffie’s picture

Great.

(BTW, a different approach is to populate $node->flag[] in hook_nodeapi('prepare'). It has the advantage that GUI and logic are separated.)

Status: Fixed » Closed (fixed)

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