Fehler in ContentSection#getDescendantsOfContentType(ContentType) korrigiert. Führte zu einer Exception beim Aufruf des Suchen-Tabs im ItemSearchWidget.

git-svn-id: https://svn.libreccm.org/ccm/trunk@917 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2011-05-17 18:00:17 +00:00
parent eb680c69ca
commit 3b3ec66061
1 changed files with 2 additions and 1 deletions

View File

@ -791,7 +791,7 @@ public class ContentSection extends Application {
CompoundFilter or = ff.or();
// The content type must be either of the requested type
or.addFilter(ff.equals(ContentType.ID, ct.ID));
or.addFilter(ff.equals(ContentType.ID, ct.getID()));
// Or must be a descendant of the requested type
try {
@ -801,6 +801,7 @@ public class ContentSection extends Application {
}
} catch (Exception ex) {
// WTF? The selected content type does not exist in the table???
s_log.error("WTF? The selected content type does not exist in the table???");
}
ctc.addFilter(or);