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

[field-components] MultiUrlField - Handle not-url values correctly #1245

Merged
merged 1 commit into from
Jul 14, 2024

Conversation

mguihal
Copy link
Contributor

@mguihal mguihal commented Apr 20, 2024

Hello,

There is currently a bug inside MultiUrlField when value given is not a valid url (or valid urls array). The URL constructor returns an exception in that case which was not catched, causing global error on the page.

I updated the component to display the not-url value in that case (possible in Archipelago because there is no validation on edit forms)

@mguihal mguihal force-pushed the fix-MultiUrlField branch from 70da259 to bbbb176 Compare May 6, 2024 17:06
@mguihal mguihal changed the title MultiUrlField - Handle not-url values correctly [field-components] MultiUrlField - Handle not-url values correctly Jul 7, 2024
@mguihal
Copy link
Contributor Author

mguihal commented Jul 9, 2024

@srosset81 you didn't approve this PR. Was it ok for you? Can I merge it?

@mguihal mguihal added the bug Something isn't working label Jul 9, 2024
@srosset81
Copy link
Contributor

Yes sure !

@mguihal mguihal merged commit d53d189 into master Jul 14, 2024
@mguihal mguihal deleted the fix-MultiUrlField branch July 14, 2024 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants