Ignore:
Timestamp:
09/25/18 13:55:11 (15 months ago)
Author:
jzenisek
Message:

#2839:

  • updated enabled state of controls for projects
  • updated enabled state of controls for resources
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/HeuristicLab.Clients.Hive.Administrator/3.3/Views/ProjectView.cs

    r16117 r16185  
    134134
    135135      if (Content != null) {
    136         var parentProject = HiveAdminClient.Instance.GetAvailableProjectAncestors(Content.Id).LastOrDefault();
    137         if (parentProject == null || parentProject.EndDate.HasValue) {
     136        //var parentProject = HiveAdminClient.Instance.GetAvailableProjectAncestors(Content.Id).LastOrDefault();
     137        var parentProject = HiveAdminClient.Instance.Projects.FirstOrDefault(x => x.Id == Content.ParentProjectId);
     138        if ((!IsAdmin() && (parentProject == null || parentProject.EndDate.HasValue))
     139           || (IsAdmin() && parentProject != null && parentProject.EndDate.HasValue)) {
    138140          indefiniteCheckBox.Enabled = false;
    139141        }
Note: See TracChangeset for help on using the changeset viewer.