Anytime a vote is opened, closed, scheduled, or the schedule changed, this should be logged with watchdog().

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Liam Morland created an issue. See original summary.

Liam Morland’s picture

Assigned: Liam Morland » Unassigned
Status: Active » Needs review
FileSize
1.58 KB
pjcdawkins’s picture

FileSize
2.99 KB

This should be in hooks, to accommodate when an election might be updated outside of that form.

pjcdawkins’s picture

FileSize
3.03 KB

Comment tweak

pjcdawkins’s picture

FileSize
4.77 KB

Clearer schedule summary and moving the key part of the message a bit earlier (so it's visible on the admin/reports/dblog overview)

pjcdawkins’s picture

Status: Needs review » Fixed

Committed

  • pjcdawkins committed 7a89c73 on 7.x-1.x
    Issue #2626714 by Liam Morland: Call watchdog() when opening or closing...
Liam Morland’s picture

Thanks very much.

pjcdawkins’s picture

I should mention that you can do this sort of thing via hook_entity_update() in a custom module, or via Rules.

Still, this seemed like a valuable security feature.

Status: Fixed » Needs work

The last submitted patch, 5: election-2626714-5.patch, failed testing.

pjcdawkins’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

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