Skip to content

Commit

Permalink
PHP fatal error fixes, issue compucorp#848
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Barmaksezian committed Aug 13, 2022
1 parent f232b1d commit 1d1be53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CRM/Civicase/BAO/Query/ContactLock.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function &getFields() {
/**
* Alters from statement to include case locks.
*/
public function from($fieldName, $mode, $side) {
public static function from($fieldName, $mode, $side) {
if ($fieldName == 'civicase_contactlock') {
$loggedContactID = CRM_Core_Session::singleton()->getLoggedInContactID();

Expand All @@ -38,7 +38,7 @@ public function from($fieldName, $mode, $side) {
/**
* Alters where statement to include case locks.
*/
public function where(&$query) {
public static function where(&$query) {
if ($query->_mode == CRM_Contact_BAO_QUERY::MODE_ACTIVITY) {

$query->_where[0][] = CRM_Contact_BAO_Query::buildClause("activity_lock", 'IS NULL');
Expand Down
2 changes: 1 addition & 1 deletion CRM/Civicase/Page/MyActivities.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class CRM_Civicase_Page_MyActivities extends CRM_Core_Page {
public function run() {
$loader = new AngularLoader();
$loader->setPageName('civicrm/case/my-activities');
$loader->setModules(['crmApp', 'my-activities']);
$loader->addModules(['crmApp', 'my-activities']);
$loader->load();

CRM_Core_Resources::singleton()
Expand Down

0 comments on commit 1d1be53

Please sign in to comment.