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
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
Comment #1
mooffie commentedI can reproduce this bug. I hope to investigate this soon.
Comment #2
mooffie commented(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.)
Comment #3
quicksketchThanks 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...
Comment #4
mooffie commentedGreat.
(BTW, a different approach is to populate $node->flag[] in hook_nodeapi('prepare'). It has the advantage that GUI and logic are separated.)