Commit fcbb18e5 authored by Stephane Glondu's avatar Stephane Glondu
Browse files

Clear automatic dates after a manual state change

parent 9aa58054
......@@ -1266,6 +1266,8 @@ let election_set_state state uuid () =
in
let state = if state then `Open else `Closed in
let%lwt () = Web_persist.set_election_state uuid state in
let dates = Web_persist.({ auto_open = None; auto_close = None }) in
let%lwt () = Web_persist.set_election_auto_dates uuid dates in
redir_preapply election_admin uuid ()
) else forbidden ()
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment