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

dev/core#2166 - E_NOTICE when deleting mail account #18927

Merged
merged 1 commit into from
Nov 5, 2020

Conversation

demeritcowboy
Copy link
Contributor

Overview

https://lab.civicrm.org/dev/core/-/issues/2166

  1. Create a mail account at Administer - CiviMail - Mail Accounts.
  2. Make sure to choose Email-to-Activity for the Used For field or else the delete link won't be available (this seems partly like a historical mixup which I'm not going to get into here).
  3. Save it.
  4. Now click the delete link to delete it.

Before

Notice: Undefined index: domain in CRM_Admin_Form_MailSettings::formRule() (line 129 of ...\CRM\Admin\Form\MailSettings.php).

After

Technical Details

Just wraps the validation in an if to see if we're deleting first. The rest is because the function doesn't have enough input to check that as currently written.

Comments

@civibot
Copy link

civibot bot commented Nov 5, 2020

(Standard links)

@civibot civibot bot added the master label Nov 5, 2020
@colemanw
Copy link
Member

colemanw commented Nov 5, 2020

Makes sense.

@colemanw colemanw merged commit 0b44c58 into civicrm:master Nov 5, 2020
@demeritcowboy demeritcowboy deleted the del-mail branch November 5, 2020 18:11
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.

2 participants