Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: publication title not updating after amending it #1234

Merged
merged 2 commits into from
Oct 20, 2023

Conversation

jaredgalanis
Copy link
Contributor

@jaredgalanis jaredgalanis commented Oct 19, 2023

@jaredgalanis jaredgalanis requested a review from jabrah October 19, 2023 23:38
@@ -65,7 +65,7 @@ export default class SubmissionsNewBasics extends Controller {

@action
async loadTab(gotoRoute) {
if (!this.doiInfo.title) set(this, 'doiInfo.title', get(this, 'publication.title'));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the actual change that fixed things for the bug.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note, stashing this information on a piece of Doi Info is something maybe we should consider changing earlier. It took me a while to even hunt this down in part because of the naming.

Also note, you can proceed initially with a DOI and then backtrack and remove it and use a manually inputted title and journal and this still all works.

@jaredgalanis jaredgalanis merged commit e81570c into main Oct 20, 2023
2 checks passed
@jaredgalanis jaredgalanis deleted the fix-pub-title-not-updating branch October 20, 2023 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot update article title using Back button
2 participants