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-21660 Remove use of deprecated function on mapping_type #11525

Merged
merged 1 commit into from
Jan 22, 2018

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Jan 15, 2018

Overview

remove deprecated function calls

Before

Usage of deprecated function
CRM_Core_OptionGroup::getValue('mapping_type', 'Import Activity', 'name');

After

Usage or recommended replacement
CRM_Core_BAO_Mapping::checkMapping($nameField, CRM_Core_PseudoConstant::getKey('CRM_Core_BAO_Mapping', 'mapping_type_id', 'Import Activity')

Technical Details

Comments

I kept this to a single field call for readability


@eileenmcnaughton
Copy link
Contributor Author

test this please

2 similar comments
@eileenmcnaughton
Copy link
Contributor Author

test this please

@eileenmcnaughton
Copy link
Contributor Author

test this please

@eileenmcnaughton
Copy link
Contributor Author

@monishdeb any chance you could review / merge this - pretty straight forward

@monishdeb
Copy link
Member

Agree, with the fix. Tested on my local, esp. on those pages which were touched with this minor fix. Working fine, merging now.

@monishdeb monishdeb merged commit fdf3bd7 into civicrm:master Jan 22, 2018
@monishdeb monishdeb deleted the deprecated branch January 22, 2018 06:34
@eileenmcnaughton
Copy link
Contributor Author

Thanks @monishdeb

@mlutfy mlutfy added this to the 4.7.31 milestone Feb 9, 2018
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.

4 participants