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

CRM-21781 Don't crash CiviCRM when missing contact ID #11690

Merged

Conversation

mattwire
Copy link
Contributor

@mattwire mattwire commented Feb 19, 2018

Overview

In various situations you end up at civicrm/contact/view without URL parameters (for example logging back in after session expiry). Currently this crashes CiviCRM with a fatal error.

This PR changes it so that instead it bounces back to the Civi dashboard, improving the user experience.

Before

Browse to civicrm/contact/view and civi crashes

After

Browse to civicrm/contact/view and civi bounces back to the dashboard and gives a status message indicating that contact ID was not found.


@colemanw
Copy link
Member

Good change :)

@colemanw colemanw merged commit 67670b4 into civicrm:master Feb 19, 2018
@eileenmcnaughton
Copy link
Contributor

possibly should be in the rc?

@eileenmcnaughton
Copy link
Contributor

ah - no - it's long-standing

@mlutfy mlutfy added this to the 4.7.32 milestone Mar 6, 2018
@mattwire mattwire deleted the CRM-21781_dont_fatal_on_contact_view branch September 25, 2018 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants