Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/29/09 14:05:55 (15 years ago)
Author:
svonolfe
Message:

Updated Job adapter (#372)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Server.ADODataAccess/3.2/JobAdapter.cs

    r1947 r1952  
    228228       
    229229        if (job.Client != null) {
    230           if (row.IsResourceIdNull() ||
    231             row.ResourceId != job.Client.Id) {
    232             ClientAdapter.Update(job.Client);
     230          if (row.IsResourceIdNull()) {
    233231            row.ResourceId = job.Client.Id;
    234232          }
     
    237235
    238236        if (job.ParentJob != null) {
    239           if (row.IsParentJobIdNull() ||
    240             row.ParentJobId != job.ParentJob.Id) {
    241             Update(job.ParentJob);
     237          if (row.IsParentJobIdNull()) {
    242238            row.ParentJobId = job.ParentJob.Id;
    243239          }
     
    360356    protected override void doUpdate(Job obj) {
    361357      ProjectAdapter.Update(obj.Project);
    362      
     358      ClientAdapter.Update(obj.Client);
     359      Update(obj.ParentJob);
     360
    363361      base.doUpdate(obj);
    364362
Note: See TracChangeset for help on using the changeset viewer.