Skip to content

Commit

Permalink
Set BibEntry to "changed" state before setting a new entry type
Browse files Browse the repository at this point in the history
fixes #5905
  • Loading branch information
dawidm committed Feb 20, 2020
1 parent 5369b3b commit 3414274
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/jabref/model/entry/BibEntry.java
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,8 @@ public Optional<FieldChange> setType(EntryType newType, EntriesEventSource event
return Optional.empty();
}

this.type.setValue(newType);
changed = true;
this.type.setValue(newType);

FieldChange change = new FieldChange(this, InternalField.TYPE_HEADER, oldType.getName(), newType.getName());
eventBus.post(new FieldChangedEvent(change, eventSource));
Expand Down

0 comments on commit 3414274

Please sign in to comment.