Skip to content
Snippets Groups Projects
Commit edd40c3d authored by sahista pathan's avatar sahista pathan Committed by Thibault Delavallée
Browse files

[FIX] mail: correctly update new and removed subtypes when updating subscription


Currently, the subtype checked selection is not saved when the user adds and
removes subtypes. Indeed either an addition is performed, either a removal
but having both is not correctly taken into account when updating an existing
subscription.

How to reproduce
  * click on the pencil icon to edit the subscription of the follower;
  * as an example default "Discussions" will be the only one selected;
  * check "Notes" and save;
  * -> this works;
  * click again on the pencil icon and uncheck "Notes" and check "Activities"
    then save;
  * -> this does not work as only removal is performed (Activities is not
    checked);

The problem only occurs when you unchecked subtypes and checked other ones.

This commit fixes that behavior by taking into consideration both new
subtypes and subtypes to remove.

LINKS

Task ID-2205643
Task ID-2241688
COM PR #56775

Co-Authored-By: default avatarThibault Delavallee <tde@odoo.com>
Co-Authored-By: default avatarShahista Pathan <sat@odoo.com>
parent 97eb1c64
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment