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

[WIP] dev/core#2473 - Don't crash when assignee left blank when creating followup on email activity #19874

Merged
merged 1 commit into from
Mar 23, 2021

Conversation

demeritcowboy
Copy link
Contributor

Overview

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

Before

  1. Create an email activity.
  2. Fill out the followup section near the bottom but leave the assignee there blank.
  3. Crash.

After

No crash.

Technical Details

The function ends up passing in array(0 => ""), which technically is not an empty array. Some changes in 5.31 end up converting the "" to a 0 instead of ignoring it which then causes a violation constraint for the assignee id.

Comments

@civibot
Copy link

civibot bot commented Mar 23, 2021

(Standard links)

@civibot civibot bot added the 5.36 label Mar 23, 2021
@seamuslee001
Copy link
Contributor

This looks good to me merging

@seamuslee001 seamuslee001 merged commit 2edd3d6 into civicrm:5.36 Mar 23, 2021
@demeritcowboy demeritcowboy deleted the blank-assignee branch March 24, 2021 00:07
@demeritcowboy
Copy link
Contributor Author

Thanks! I was going to write a test and check into why the regular activity form doesn't seem to need this, but I suppose I can still do that.

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