Skip to content

Commit

Permalink
Submission deadline in cdb encompasses all submission rounds.
Browse files Browse the repository at this point in the history
  • Loading branch information
kohler committed Sep 26, 2023
1 parent 50e5692 commit 94aed9c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions batch/updatecontactdb.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,13 @@ private function try_cdb() {
$qf[] = "requester_email=?";
$qv[] = $email;
}
if (($sub = $this->conf->setting("sub_sub"))
&& $sub !== $this->confrow->submission_deadline_at) {
$max_sub = 0;
foreach ($this->conf->submission_round_list() as $sr) {
$max_sub = max($max_sub, $sr->register, $sr->update, $sr->submit);
}
if ($max_sub && $max_sub !== $this->confrow->submission_deadline_at) {
$qf[] = "submission_deadline_at=?";
$qv[] = $sub;
$qv[] = $max_sub;
}
if (!empty($qf)) {
$qv[] = $this->cdb_confid;
Expand Down

0 comments on commit 94aed9c

Please sign in to comment.