ENOTICE when creating activity from contact search results / aka Repeat Activity accordion section missing when using Add Activity from contact search results
I'm not sure which one is the actual bug: Is it intentional that you can't create a repeating activity in this situation, in which case the bug is just the ENOTICE, or is it that it was an oversight and you are supposed to be able to create repeat activities?
The first one is easier/safer to fix, and is just here. The second one seems to be coming from here, because $this->_action
is actually CRM_Core_Action::BASIC
in this situation, but might be more complex than just updating that line because recurring activities can be tricky, so might have been left out on purpose.
To clarify what I'm talking about:
- Do a contact search.
- Select a couple contacts or all.
- From the actions dropdown choose "Add Activity".
- On the resulting activity form there isn't the usual "Repeat Activity" section.
- If you keep going and save you get the notice
Undefined index: allowRepeatConfigToSubmit in CRM_Core_Form_RecurringEntity::postProcess() (line 346 of /.../web/sites/all/modules/civicrm/CRM/Core/Form/RecurringEntity.php