On /user/[uid]/activity/settings page I was select one checkbox 'don't record my activity when new comment posted' and press 'Save' button. Now I see that this checkbox is selected.

Then I unselect 'don't record my activity when new comment posted' and press 'Save' button again and I don't see any changes - the checkbox is still selected!

Then I try to select some one else, for example, 'don't record my activity when comment is updated' and press 'Save' - nothings happens! Now there is always one selected item - the first item.

Tested on clear install Drupal 6.13 + Token and Trigger modules. Server configuration: FreeBSD + Apache + PHP 5.2.8 (cgi) + mysql 5.1.29-rc. Tested also on Windows with PHP 5.2.4 and mysql 5.0.45.

Comments

drewish’s picture

humm... i just tested it and got the opposite behavior i can't get any check boxes to stick.

drewish’s picture

Status: Active » Needs review
StatusFileSize
new2.7 KB
new59.06 KB

here's a patch to clean up the saving. i think using the checkboxes was really wonky. I went with radios because it was easier to make it clear what you were choosing. It also made for a lot less code.

Attaching a screen shot previewing it. The first item is missing a title because I'd removed it from hook_triggers_hook_info() but not my database.

drewish’s picture

dicreat’s picture

Patch work for me, now I can save my personal settings on activity privacy settings page. I'm turning off logging of some actions, but in activity log I still see this action's messages.

sirkitree’s picture

Status: Needs review » Fixed

I like it! Thanks!

dicreat’s picture

Status: Fixed » Closed (won't fix)

There is no sense in these settings if they don't work! All users’ actions still logging, even if they disabled at activity privacy setting page.

drewish’s picture

Status: Closed (won't fix) » Fixed

dicreat, a proper bug report would be much more helpful than throwing a tantrum. the settings at least save now, small steps. either re-open this or create a new issue.

drewish’s picture

Status: Fixed » Needs review
StatusFileSize
new936 bytes

Small follow up to help set the correct default value the first time the user views the form. Currently there's no value set by default.

sirkitree’s picture

Status: Needs review » Fixed

Ah, thank you. That works much better. Committed.

Status: Fixed » Closed (fixed)

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