Skip to content

Commit

Permalink
Avoid notice on rows
Browse files Browse the repository at this point in the history
  • Loading branch information
eileenmcnaughton committed Mar 17, 2022
1 parent a449e3d commit 96d41de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CRM/Contact/Form/Task/EmailTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ public function preProcess() {
* @throws \CRM_Core_Exception
* @throws \API_Exception
*/
protected function traitPreProcess() {
protected function traitPreProcess(): void {
$this->addExpectedSmartyVariable('rows');
if ($this->isSearchContext()) {
// Currently only the contact email form is callable outside search context.
parent::preProcess();
Expand Down

0 comments on commit 96d41de

Please sign in to comment.