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

CST-334: Fix case entity not being imported #970

Merged
merged 2 commits into from
Sep 16, 2023

Conversation

olayiwola-compucorp
Copy link

@olayiwola-compucorp olayiwola-compucorp commented Sep 6, 2023

Overview

This PR fixes an issue in the extension that prevents the case entity from being imported using the CSV import extension

Before

Import hangs and the error below is thrown

TypeError: Illegal offset type in isset or empty in civicrm_api3_generic_getvalue() (line 338 of /Applications/MAMP/htdocs/cst/profiles/compuclient/modules/contrib/civicrm/api/v3/Generic.php).

After

Import is successfully completed
Screenshot 2023-09-06 at 16 16 24

Technical Details

This error happened because the CaseType.getvalue endpoint expects the return param to be a string type and not an array

@olayiwola-compucorp olayiwola-compucorp changed the title CST-334-fix-case-import CST-334: Fix case entity not being imported Sep 6, 2023
This error happened because the getvalue endpoint expects the return param to be a string type and not an array
@olayiwola-compucorp olayiwola-compucorp merged commit 4777bc3 into master Sep 16, 2023
2 checks passed
@olayiwola-compucorp olayiwola-compucorp deleted the CST-334-fix-case-import branch September 16, 2023 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants