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

dev/core#2983 - Make static function static - AJAX::caseDetails() #23832

Merged
merged 1 commit into from
Jun 17, 2022

Conversation

demeritcowboy
Copy link
Contributor

Overview

Related to https://lab.civicrm.org/dev/core/-/issues/2983

Deprecated function: Non-static method CRM_Case_Page_AJAX::caseDetails() should not be called statically in CRM_Core_Invoke::runItem() (line 285 of /srv/buildkit/build/dmaster/web/sites/all/modules/civicrm/CRM/Core/Invoke.php)

Also an error about end_date missing when there is no end_date. And the html is broken when there is one.

Before

  1. Because ajax swallows it, you need to first turn off popups at administer - customize - display prefs, or install the loudnotices extension and then view the error 500 response in the network tab.
  2. Create a case.
  3. Run the case details civireport.
  4. Click on the subject. (Because we turned off popups, this is going to seem like it's a useless feature, and there's an argument that even with popups on it's not that useful since normally you would add columns to the report, but just act like everything is fine.)
  5. Now go to any other civi page. Now the error appears.

After

Better

Technical Details

Comments

The only other places this function is used is as described in the lab ticket, but other than handling the same error I'm not addressing the larger questions here.

@civibot
Copy link

civibot bot commented Jun 17, 2022

(Standard links)

@civibot civibot bot added the master label Jun 17, 2022
@eileenmcnaughton eileenmcnaughton merged commit 26522ed into civicrm:master Jun 17, 2022
@demeritcowboy demeritcowboy deleted the casedetails-static branch June 17, 2022 23:21
@demeritcowboy
Copy link
Contributor Author

Thanks!

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.

2 participants