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

Comments

Liam Morland created an issue. See original summary.

liam morland’s picture

Assigned: liam morland » Unassigned
Status: Active » Needs review
StatusFileSize
new1.58 KB
pjcdawkins’s picture

StatusFileSize
new2.99 KB

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

pjcdawkins’s picture

StatusFileSize
new3.03 KB

Comment tweak

pjcdawkins’s picture

StatusFileSize
new4.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.