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

Handle invalid calendar id gracefully #7

Open
charlesbrandt opened this issue Jan 29, 2018 · 1 comment
Open

Handle invalid calendar id gracefully #7

charlesbrandt opened this issue Jan 29, 2018 · 1 comment
Assignees
Labels

Comments

@charlesbrandt
Copy link
Contributor

We're finding that users are confused about what value to enter in the calendar ID field. Often they will try a url copied from google calendar. This results in an unhandled exception that locks them out of the page.

image 6

This is fixed by editing the page and removing the invalid value.

Ideally the module should catch this exception and report an invalid ID was entered. There could even be a link to the main readme for instructions on finding a valid Google Calendar ID:

https://github.com/City-of-Bloomington/drupal-module-calendar

@inghamn
Copy link
Member

inghamn commented Aug 19, 2021

We need to write a custom field validation for the calendar module.

https://www.drupal.org/docs/drupal-apis/entity-api/entity-validation-api/providing-a-custom-validation-constraint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants