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

Export does not support "Categories" field type (v1.8.0) #173

Open
degraaf opened this issue Mar 8, 2018 · 0 comments
Open

Export does not support "Categories" field type (v1.8.0) #173

degraaf opened this issue Mar 8, 2018 · 0 comments

Comments

@degraaf
Copy link

degraaf commented Mar 8, 2018

Export function was crashing.

Debugged and found that it does not support 'Categories' field type.

Patched my local version by adding a case statement:

diff --git a/plugins/amforms/services/AmForms_ExportsService.php b/plugins/amforms/services/AmForms_ExportsService.php
index 5c85b983..72b545d7 100755
--- a/plugins/amforms/services/AmForms_ExportsService.php
+++ b/plugins/amforms/services/AmForms_ExportsService.php
@@ -736,6 +736,7 @@ class AmForms_ExportsService extends BaseApplicationComponent
                     }
                     $data[] = implode(', ', $fieldExportData);
                     break;
+                case 'Categories':
                 case 'Entries':
                     $fieldExportData = array();
                     foreach ($submission->$fieldHandle->find() as $fieldData) {
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

No branches or pull requests

1 participant