Bug reports Found a bug? Post it here please.
Version 4.x > Bug reports > newsletter subscribe webpart View modes: 
User avatar
Member
Member
srizzetto-microgate - 2/27/2009 9:59:43 AM
   
newsletter subscribe webpart
I you choose to show the list of newsletter (with the "not very elegant" special name NWSLetUserchose; why not to use a boolean property) and you don't fill mandatory fields (eg email), the list of newsletter is filled again with duplicate values.

My workaround:
change line
if (!DataHelper.DataSourceIsEmpty(ds) )

with

if (!DataHelper.DataSourceIsEmpty(ds) && !RequestHelper.IsPostBack())



in \CMSWebParts\Newsletters\NewsletterSubscriptionWebPart.ascx.cs

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 3/3/2009 9:11:27 AM
   
RE:newsletter subscribe webpart
Hi,

If I am getting the right meaning I am not able to reproduce the issue in version 4.0. What is your version of CMS?

Could you please describe the steps leading to this with more details? Thank you.

Best Regards,
Juraj Ondrus

User avatar
Member
Member
srizzetto-microgate - 3/4/2009 3:09:55 AM
   
RE:newsletter subscribe webpart
Yes I have 4.0

Suppose you have two newsletters that build the checkbox list (news1, news2).

If I want to subscribe but don't fill one of the mandatory fields (eg. firstname), there is a postback, validator says me I miss a field, butnow checkboxlist has 4 values:
- news1
- news2
- news1
- news2


User avatar
Member
Member
srizzetto-microgate - 3/4/2009 3:16:08 AM
   
RE:newsletter subscribe webpart
In addition I want to point out that some italian strings in this contest are wrong.

eg. newslettersubscription.subscribed and newslettersubscription.subscriptioncreated
say the opposite of their meaning (they say "your subscription has been CANCELLED instead CREATED)

thanks

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 3/4/2009 8:27:20 AM
   
RE:newsletter subscribe webpart
Hi,

This is possible, I am sorry also for that, but the translations are made by our partners. You can change them in appropriate resx file in CMSResources folder.
Could you please send us the correct translations for the mentioned keys so we can fix this bug? Thank you in advance.

Best Regards,
Juraj Ondrus

User avatar
Member
Member
srizzetto-microgate - 3/4/2009 9:31:17 AM
   
RE:newsletter subscribe webpart
right translation:

La tua iscrizione e' stata creata correttamente.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 3/4/2009 8:24:00 AM
   
RE:newsletter subscribe webpart
Hi,

You did not mentioned which templates are you using - I tried it in Portal engine and there it is working fine. But know, I have tried it on ASPX templates and unfortunately you are right, there is bug. I am sorry for this inconvenience.

Best Regards,
Juraj Ondrus