Changeset 7119


Ignore:
Timestamp:
Apr 14, 2016, 1:14:08 PM (6 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #1998: Viewing a job when a project is active changes the job's project to that project

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/core/net/sf/basedb/core/Job.java

    r6988 r7119  
    331331  {
    332332    super.onBeforeCommit(action);
    333     int projectId = getSessionControl().getActiveProjectId();
    334     if (projectId != 0)
    335     {
    336       getData().setActiveProjectId(projectId);
    337     }
    338     if (action == Action.CREATE && getStatus() == Status.WAITING)
    339     {
    340       getData().setScheduled(new Date());
     333    if (action == Action.CREATE)
     334    {
     335      int projectId = getSessionControl().getActiveProjectId();
     336      if (projectId != 0) getData().setActiveProjectId(projectId);
     337      if (getStatus() == Status.WAITING) getData().setScheduled(new Date());
    341338    }
    342339  }
Note: See TracChangeset for help on using the changeset viewer.