[ 
https://issues.apache.org/jira/browse/OFBIZ-9361?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17638863#comment-17638863
 ] 

ASF subversion and git services commented on OFBIZ-9361:
--------------------------------------------------------

Commit a8d2138448e3ec544df20f574fe0da92a016433d in ofbiz-framework's branch 
refs/heads/release22.01 from Giulio Speri
[ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=a8d2138448 ]

Fixed: newsletter multiple subscript. w same email address (OFBIZ-9361)

It was possible to be subscribed to the newsletter with the same email
address multiple time.

Added a check for already ACCEPTED requests in order to refuse new
incoming subscription with the same email address.
For existing PENDING requests instead, has been added the deletion of
all the existing records for the same email address, before adding a
new one.

Thanks Aditya Sharma for your feedback on this.

> Newsletter can be subscribed with same email address multiple times
> -------------------------------------------------------------------
>
>                 Key: OFBIZ-9361
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-9361
>             Project: OFBiz
>          Issue Type: Bug
>          Components: ecommerce
>    Affects Versions: Release Branch 16.11, Trunk, Upcoming Branch
>            Reporter: Aditya Sharma
>            Assignee: Giulio Speri
>            Priority: Trivial
>              Labels: backport-needed
>             Fix For: Upcoming Branch
>
>         Attachments: OFBIZ-9361.patch
>
>
> Steps to regenerate:
> 1. Go to Ecommerce component 
> (https://demo-trunk.ofbiz.apache.org/ecommerce/control/main)
> 2. In Sign Up For Contact List section from the left panel, select 
> contactList for Newsletter.
> 3. Fill out the email address and Click on Subscribe button.
> Try subscribing with the same email address for the newsletter. Email is 
> again added to Newsletter subscription list even if it is already subscribed 
> for it. Email address with pending and accepted status can be again added to 
> the list with pending status.
> Multiple entries are created in ContactListParty entity for the same 
> preferredContactMechId.
> At Service level, it should check if already an entry in pending or accepted 
> status exists.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to