MNT-19967 Get record disposition schedule from first parent category which has one

This commit is contained in:
cagache
2018-09-27 12:40:04 +03:00
parent 4ea4973b1d
commit 7419a076c7

View File

@@ -348,9 +348,6 @@ public class DispositionServiceImpl extends ServiceBaseImpl
return ds; return ds;
} }
/** /**
* This method returns a NodeRef * This method returns a NodeRef
* Gets the disposition instructions * Gets the disposition instructions
@@ -383,7 +380,7 @@ public class DispositionServiceImpl extends ServiceBaseImpl
NodeRef result = getAssociatedDispositionScheduleImpl(parent); NodeRef result = getAssociatedDispositionScheduleImpl(parent);
if (result == null) if (result == null)
{ {
return null; return getOriginDispositionSchedule(parent);
} }
return new DispositionScheduleImpl(serviceRegistry, nodeService, result); return new DispositionScheduleImpl(serviceRegistry, nodeService, result);
} }