Changeset 1061 for trunk/common


Ignore:
Timestamp:
11/22/09 16:07:21 (2 years ago)
Author:
bogdan2412
Message:

Fix submitting of new tasks added to waiting rounds

There was a problem when a task owner tried to submit solutions to his task after it was added to a "waiting" round. This should fix it and still allow him to submit to a null round if there are no other options available.

Review URL: http://reviewboard.infoarena.ro/r/97/

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/common/job.php

    r1039 r1061  
    3838    // Check if task is new and hasn't been added to any rounds 
    3939    if (getattr($args, "round_id") == "" && 
    40         !task_get_parent_rounds($task["id"]) && 
     40        !task_get_submit_rounds($task["id"], $user) && 
    4141        security_query($user, 'task-submit', $task)) { 
    4242        unset($errors["round_id"]); 
Note: See TracChangeset for help on using the changeset viewer.