Permalink
Browse files

Forcing choosing a corresponding author in triage

  • Loading branch information...
1 parent ba2533e commit b2847994190a03c216be9005a5db6fbaf8fe287c @kimrutherford kimrutherford committed Apr 4, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/PomCur/Controller/Tools.pm
@@ -155,6 +155,9 @@ sub triage :Local {
$pub_just_triaged->corresponding_author($new_person->person_id());
} else {
# they didn't enter a new person
+ $c->flash()->{error} = "You must choose a corresponding author";
+ $c->res->redirect($c->uri_for('/tools/triage'));
+ $c->detach();
}
}

0 comments on commit b284799

Please sign in to comment.