diff --git a/CHANGELOG.md b/CHANGELOG.md index 5cf5f072c5e..7dfd18d36c8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1189,6 +1189,7 @@ Note that this project **does not** adhere to [Semantic Versioning](https://semv - We fixed an issue where opening the menu 'Library properties' marked the library as modified [#6451](https://github.com/JabRef/jabref/issues/6451) - We fixed an issue when importing resulted in an exception [#7343](https://github.com/JabRef/jabref/issues/7343) - We fixed an issue where the field in the Field formatter dropdown selection were sorted in random order. [#7710](https://github.com/JabRef/jabref/issues/7710) +- We fixed an issue where the crossref entry's table preview does not update immediately. [#7730](https://github.com/JabRef/jabref/issues/7730) ### Removed diff --git a/src/main/java/org/jabref/gui/maintable/BibEntryTableViewModel.java b/src/main/java/org/jabref/gui/maintable/BibEntryTableViewModel.java index 6f614cb2679..31e0c9e11b5 100644 --- a/src/main/java/org/jabref/gui/maintable/BibEntryTableViewModel.java +++ b/src/main/java/org/jabref/gui/maintable/BibEntryTableViewModel.java @@ -45,6 +45,7 @@ public class BibEntryTableViewModel { private final Binding> matchedGroups; private final BibDatabaseContext bibDatabaseContext; + public BibEntryTableViewModel(BibEntry entry, BibDatabaseContext bibDatabaseContext, ObservableValue fieldValueFormatter) { this.entry = entry; this.fieldValueFormatter = fieldValueFormatter; @@ -133,6 +134,8 @@ public ObservableValue getFields(OrFields fields) { } ArrayList observables = new ArrayList<>(List.of(entry.getObservables())); + Optional referenced = bibDatabaseContext.getDatabase().getReferencedEntry(entry); + referenced.ifPresent(bibEntry -> observables.addAll(List.of(bibEntry.getObservables()))); observables.add(fieldValueFormatter); value = Bindings.createStringBinding(() ->