Skip to content

Commit

Permalink
Merge pull request civicrm#24843 from demeritcowboy/addclient
Browse files Browse the repository at this point in the history
TypeError: call_user_func(): Argument #1 ($callback) must be a valid callback, non-static method CRM_Case_Page_AJAX::addClient() cannot be called statically
  • Loading branch information
eileenmcnaughton authored Oct 28, 2022
2 parents 437469f + 509af05 commit 2cff1a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Case/Page/AJAX.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public static function caseDetails() {
/**
* @throws \CRM_Core_Exception
*/
public function addClient() {
public static function addClient() {
$caseId = CRM_Utils_Type::escape($_POST['caseID'], 'Positive');
$contactId = CRM_Utils_Type::escape($_POST['contactID'], 'Positive');

Expand Down

0 comments on commit 2cff1a7

Please sign in to comment.