- Change to the PDL file of the About asset for publications
- Minor enhancement for PublicationBundle, the method PublicationBundle#getPublication(String languge) now never returns null git-svn-id: https://svn.libreccm.org/ccm/trunk@2614 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
15c83b31e9
commit
155c0fc878
|
|
@ -33,4 +33,6 @@ association {
|
||||||
to ca_publications_about.discussing_publication_id,
|
to ca_publications_about.discussing_publication_id,
|
||||||
join ca_publications_about.discussed_publication_id
|
join ca_publications_about.discussed_publication_id
|
||||||
to ct_publication_bundles.bundle_id;
|
to ct_publication_bundles.bundle_id;
|
||||||
|
|
||||||
|
Integer[0..1] publicationsOrder = ca_publications_about.publications_order INTEGER;
|
||||||
}
|
}
|
||||||
|
|
@ -375,6 +375,12 @@ public class PublicationBundle extends ContentBundle {
|
||||||
}
|
}
|
||||||
|
|
||||||
public Publication getPublication(final String language) {
|
public Publication getPublication(final String language) {
|
||||||
return (Publication) getInstance(language);
|
//return (Publication) getInstance(language);
|
||||||
|
Publication result = (Publication) getInstance(language);
|
||||||
|
if (result == null) {
|
||||||
|
result = getPublication();
|
||||||
|
}
|
||||||
|
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue