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

Make all form tasks inherit from Core_Form_Task #12318

Merged
merged 1 commit into from
Jun 15, 2018

Conversation

mattwire
Copy link
Contributor

otherwise export can fail when accessed from advanced search because properties are inaccessible.

Overview

Since #11536 export form task uses CRM_Core_Form_Task but because we only converted CRM_Case_Form_Task we can get inaccessible properties when running exports on other entity types.

Identified when investigating #12244

Before

Form_Task classes mostly inherit from CRM_Core_Form.

After

All Form_Task classes inherit from CRM_Core_Form_Task.

Technical Details

This is basically just removal of variables declared on each class and using the parent one instead. We also add comments clarifying that the "plan" is to move more of the code to shared functions in CRM_Core_Form_Task.

…ail when accessed from advanced search because properties are inaccessible
@civibot
Copy link

civibot bot commented Jun 15, 2018

(Standard links)

@eileenmcnaughton
Copy link
Contributor

@mattwire I took a look at this & did not manage to cause any problems with or without this patch. I looked & saw these changes were consistent with CRM_Case_Form_Task and CRM_Core_Form_Task_Batch and I'm generally fine with those changes & agree they improve consistency.

I had some reservations about CRM_Export_Form_Select which doesn't feel the same sort of class as the others but I found some precedent in CRM_Event_Form_Task_ParticipantStatus & could not see a specific problem with it

@eileenmcnaughton eileenmcnaughton merged commit e67ad14 into civicrm:master Jun 15, 2018
@mattwire mattwire deleted the inherit_core_form_task branch September 25, 2018 11:01
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.

3 participants