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 bug in date validation in admin_set form #4145

Merged
merged 1 commit into from Nov 1, 2019
Merged

Conversation

Dananji
Copy link
Contributor

@Dananji Dananji commented Nov 1, 2019

Fixes #4144

When creating a new work, the work form fails to load because a date validation check in admin_set edit forms introduced in #4067 leaked into the work form. This produces a JavaScript error causing failure in loading the work form.

Changes proposed in this pull request:

  • Change the jQuery form selection to pick only the relevant form to perform the date validation

Guidance for testing, such as acceptance criteria or new user interface behaviors:

  • Sign in as a user in Safari
  • Go to Works page in Dashboard
  • Click on Add new work
  • Select a work type and click Create work in the modal
  • Work form loads

@samvera/hyrax-code-reviewers

Copy link
Member

@cjcolvar cjcolvar left a comment

Choose a reason for hiding this comment

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

👍

@no-reply
Copy link
Member

no-reply commented Nov 1, 2019

@Dananji is this a draft PR, or ready to go?

@Dananji
Copy link
Contributor Author

Dananji commented Nov 1, 2019

@no-reply Yes this is ready. Sorry I forgot to mark it Ready for review.

@Dananji Dananji marked this pull request as ready for review November 1, 2019 18:58
@no-reply no-reply merged commit 1932c54 into master Nov 1, 2019
@no-reply no-reply deleted the fix-bug-4144 branch November 1, 2019 20:35
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 create a new work in Safari
3 participants