Bugfix: Ziele und Maßnahmen, die an gelöschten Oberzielen hängen werden nicht mehr angezeigt
This commit is contained in:
@@ -904,8 +904,11 @@ namespace BeWoPlanerMobil.Controllers
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
goalTreeDic[zielMitEltern.ParentOid.Value].Children.Add(zielMitEltern);
|
||||
if (goalTreeDic.ContainsKey(zielMitEltern.ParentOid.Value))
|
||||
{
|
||||
goalTreeDic[zielMitEltern.ParentOid.Value].Children.Add(zielMitEltern);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
foreach(var ziel in massnahmen)
|
||||
@@ -965,9 +968,9 @@ namespace BeWoPlanerMobil.Controllers
|
||||
{
|
||||
var parentDC = ValueListService.GetValueListEntryByOid(pParentOid);
|
||||
|
||||
if(parentDC?.ValueListEntryOid is null)
|
||||
if(parentDC?.ValueListEntryOid is null || parentDC?.IsActive == false)
|
||||
{
|
||||
continue;
|
||||
break;
|
||||
}
|
||||
|
||||
if(!_ParentGoals.ContainsKey(parentDC.ValueListEntryOid.Value))
|
||||
|
||||
Reference in New Issue
Block a user