Skip to content

Distribution emails -- on change, if you add items, they do not show up in the email, and if you *only* add items, no email is generated (i.e. if you don't change levels of existing items) #5666

Description

@awwaiid

Summary

The email sent out on distribution changes is not handling some changes correctly. Fix it.

Why?

Could be misleading

Details

To see the problems:

Using your local copy of the application:
sign in as org_Admin1@example.com
click on Distributions
choose an editable distribution (it's possible you may need to enter a new one) Note the partner for that distribution
Next, Confirm that that partner receives distribution notices:

  • click on Partner Agencies, then All Partners
  • Click on the partner name
  • Click on "Edit Partner Information"
  • Ensure that the "Do you want this partner to receive emails..." checkbox is checked, and then click "Update Partner".
    Go back to the distribution
    click Edit

Problem 1/
Change the level of one of the items, and add an item
Click Save

You will see that the email that comes out includes the updated item but not the added item.

The email should include a line detailing the added item.

Problem 2/
Same thing, but add an item without changing any items.

No email is sent. An email should be sent regarding the added item.

Criteria for completion

  • behaviour changes as detailed above
  • tests that confirm those behaviour changes
  • no user guide update is required

Please note:

  • there is a separate issue regarding the awkward wording of the text in the email

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions