AbstractContentTypeLoader
Kleiner Fehler in der if-Abfrage beseitig - Ein Fall war nicht breücksichtigt Quasi git-svn-id: https://svn.libreccm.org/ccm/trunk@608 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
5ce4a59199
commit
3def7dbe24
|
|
@ -227,10 +227,11 @@ public abstract class AbstractContentTypeLoader extends PackageLoader {
|
||||||
// Save the current ct as possible parent if we haven't found any parent yet
|
// Save the current ct as possible parent if we haven't found any parent yet
|
||||||
// or if the current ancestor list is longer than that one from the possible
|
// or if the current ancestor list is longer than that one from the possible
|
||||||
// parent earlier found
|
// parent earlier found
|
||||||
if (parent == null
|
if (!type.getClassName().equals(ct.getClassName())
|
||||||
|
&& (parent == null
|
||||||
|| (parent.getAncestors() != null
|
|| (parent.getAncestors() != null
|
||||||
&& ct.getAncestors() != null
|
&& ct.getAncestors() != null
|
||||||
&& parent.getAncestors().length() < ct.getAncestors().length())) {
|
&& parent.getAncestors().length() < ct.getAncestors().length()))) {
|
||||||
parent = ct;
|
parent = ct;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue