Skip to content

Commit

Permalink
Fix bug: Set Conf::$paper.
Browse files Browse the repository at this point in the history
  • Loading branch information
kohler committed Apr 19, 2021
1 parent 6697b15 commit 7d9bfd3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion assign.php
Expand Up @@ -23,7 +23,7 @@ function assign_load() {
global $Conf, $Me, $Qreq, $paperTable;
try {
$pr = new PaperRequest($Me, $Qreq, true);
$prow = $pr->prow;
$prow = $Conf->paper = $pr->prow;
if (($whynot = $Me->perm_request_review($prow, null, false))) {
$paperTable = new PaperTable($Me, $Qreq, $prow, "assign");
throw $whynot;
Expand Down
2 changes: 1 addition & 1 deletion paper.php
Expand Up @@ -43,7 +43,7 @@ function load_prow() {
// determine whether request names a paper
try {
$pr = new PaperRequest($this->user, $this->qreq, false);
$this->prow = $pr->prow;
$this->prow = $this->conf->paper = $pr->prow;
} catch (Redirection $redir) {
assert(PaperRequest::simple_qreq($this->qreq));
$this->conf->redirect($redir->url);
Expand Down
2 changes: 1 addition & 1 deletion review.php
Expand Up @@ -53,7 +53,7 @@ function load_prow() {
// determine whether request names a paper
try {
$pr = new PaperRequest($this->user, $this->qreq, true);
$this->prow = $pr->prow;
$this->prow = $this->conf->paper = $pr->prow;
if ($pr->rrow) {
$this->rrow = $pr->rrow;
$this->rrow_explicit = true;
Expand Down

0 comments on commit 7d9bfd3

Please sign in to comment.