diff --git a/CHANGELOG.md b/CHANGELOG.md index 9486d0ec9..b18ec1666 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Upgrade `actix-cors` to v0.7.0 - Increase size of URL columns in locations component +### Fixed + - [531](https://github.com/thoth-pub/thoth/pull/531) - Fix bug where New Publication form for Chapter could have an ISBN pre-populated but greyed out + ## [[0.11.12]](https://github.com/thoth-pub/thoth/releases/tag/v0.11.12) - 2023-12-20 ### Fixed - [530](https://github.com/thoth-pub/thoth/pull/530) - Fix pagination offset calculation in export API diff --git a/thoth-app/src/component/publication_modal.rs b/thoth-app/src/component/publication_modal.rs index f1e99a1f3..a25d64ba2 100644 --- a/thoth-app/src/component/publication_modal.rs +++ b/thoth-app/src/component/publication_modal.rs @@ -140,6 +140,11 @@ impl Component for PublicationModalComponent { if let Some(publication) = ctx.props().publication_under_edit.clone() { // Editing existing publication: load its current values. self.publication = publication; + } else { + // Previous values will be retained if creating new publication, which may be + // useful for batch-adding, but this is less likely for ISBNs (and they also + // cannot be added for publications whose work type is Book Chapter). + self.publication.isbn = None; } // Ensure ISBN variable value is kept in sync with publication object. self.isbn = self