-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
REF Convert deprecated functions to buildOptions for case #13364
REF Convert deprecated functions to buildOptions for case #13364
Conversation
9da60b3
to
889e61f
Compare
Jenkins re test this please |
889e61f
to
0f103b7
Compare
@colemanw @seamuslee001 Either of you able to give this a quick review? |
@@ -112,8 +112,8 @@ public static function actionLinks( | |||
$activityId = NULL, | |||
$key = NULL, | |||
$compContext = NULL) { | |||
static $activityActTypes = NULL; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes to this file checked & oK
@@ -1058,7 +1058,6 @@ public static function getCaseActivity($caseID, &$params, $contactID, $context = | |||
$caseCount = CRM_Core_DAO::singleValueQuery('SELECT FOUND_ROWS()'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this file is ok
@mattwire I think there are a few places where this could be a little improved but none are blocking so if you don't wish to revisit them I'm OK to merge - although I don't think they will get later if you don't |
0f103b7
to
003de00
Compare
003de00
to
b864360
Compare
@eileenmcnaughton I've addressed your comments - can we merge? |
Overview
Convert
CRM_Core_PseudoConstant::activityType()
andCRM_Core_PseudoConstant::activityStatus()
to non deprecatedbuildOptions()
function.Fix a couple of PHP notices.
Before
Deprecated code, php notices.
After
Less deprecated code, less PHP notices
Technical Details
In most cases these methods are functionally the same. In some cases the
buildOptions()
replacement foractivityType()
function also returns campaign activities but this does not matter because the activity type arrays are being used to lookup (via array_search) specific activity types.Comments