BugFix für die PublicationAuthorAddForm. Dort war noch eine Zeile vorhanden, die aus der Zeit vor der Verlegung der Assoizationen in die ContentBundles stammte. Diese Zeile führte unter bestimmten Umständen (Publikation nur im Sprachcode "--", also sprachunabhängig, und Author nur in einem anderen Sprachcode, z.B. "en" vorhanden) zu einem Fehler beim Zuordnen eines Authors zu einer Publikation. Die Zeile ist aber durch die Verlegung der Assoziationen in die Bundles überflüssig geworden.
git-svn-id: https://svn.libreccm.org/ccm/trunk@2374 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
66c17cbddd
commit
5c9584f4a1
|
|
@ -155,9 +155,6 @@ public class PublicationAuthorAddForm
|
||||||
if (author == null) {
|
if (author == null) {
|
||||||
GenericPerson authorToAdd =
|
GenericPerson authorToAdd =
|
||||||
(GenericPerson) data.get(ITEM_SEARCH);
|
(GenericPerson) data.get(ITEM_SEARCH);
|
||||||
authorToAdd = (GenericPerson) authorToAdd.getContentBundle().
|
|
||||||
getInstance(publication.getLanguage());
|
|
||||||
|
|
||||||
publication.addAuthor(authorToAdd, editor);
|
publication.addAuthor(authorToAdd, editor);
|
||||||
|
|
||||||
// final String publishStr = data.getString(ItemSearchWidget.PUBLISH);
|
// final String publishStr = data.getString(ItemSearchWidget.PUBLISH);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue