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

Check for Carbon exception #12818

Merged
merged 1 commit into from
Apr 12, 2023
Merged

Conversation

snipe
Copy link
Owner

@snipe snipe commented Apr 12, 2023

Better handles carbon invalid format exception

Signed-off-by: snipe <snipe@snipe.net>
@snipe snipe merged commit c02bd54 into develop Apr 12, 2023
3 checks passed
@snipe snipe deleted the fixes/better_error_handling_on_dates branch April 12, 2023 06:36
@what-the-diff
Copy link

what-the-diff bot commented Apr 12, 2023

PR Summary

  • Changed date format in License model
    The date format for the purchase_date, expiration_date, and termination_date fields in the License model was changed from datetime to date.
  • Added new exception handler
    A new exception called "InvalidFormatException" is added to handle any invalid data entered by the user while creating or editing license details.
  • Improved error response for Ajax requests
    A new condition in the render method of the Handler class returns a JSON response when InvalidFormatException occurs during Ajax requests, such as creating or editing a license.
  • Enhanced Datepicker input field
    The Datepicker input field width on the edit page of the licenses module has been increased to better accommodate longer dates without breaking lines.

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

Successfully merging this pull request may close these issues.

None yet

1 participant