[
https://issues.apache.org/jira/browse/OFBIZ-9361?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Aditya Sharma updated OFBIZ-9361:
---------------------------------
Attachment: OFBIZ-9361.patch
Solution:
Added checks in signUpForContactList service. Added new UiLabels in
MarketingUiLabels.xml
When the user is already subscribed it shows a message:
{quote}You are already subscribed to our newsletter.{quote}
When the user has already requested for the subscription it generates the new
opt in code but with the message:
{quote}You have already requested to subscribe for our newsletter. However, you
have not verified your subscription. We have resent you the verification mail -
please check your inbox for verification email.{quote}
Additional change:
When the user has successfully requested for the subscription it shows a
message:
{quote}Newsletter subscription request successful. Please check your inbox for
verification email.{quote}
> 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
> Reporter: Aditya Sharma
> Assignee: Aditya Sharma
> Priority: Trivial
> 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
(v6.4.14#64029)