Closed (fixed)
Project:
Campaign Monitor
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Aug 2012 at 18:23 UTC
Updated:
18 Jan 2013 at 20:40 UTC
I am having a problem. I have multiple subscribe forms on a page, and no matter which list a user subscribes to, the confirmation always says "Thanks for joining list 1". I have tried to debug some, and the hidden element that contains the list_id seems to be set properly in the markup, and when i print it out in the function campaignmonitor_subscribe_form() it is correct. However, once it gets passed to the submit handler, it is always the same list_id no matter which form was submitted. I am not sure why. Any ideas?
Comments
Comment #1
bdawg8569 commentedI think i have found the issue. In the function campaign_monitor_subscribe_form i changed the way the the values were being set for the hidden list_id field. Rather than using the #value property, i changed it to #default_value. #value was causing the same value to be submitted each time when multiple forms were on the same page. Default value works correctly, passing in the correct list Id.
Comment #2
cableman0408 commentedI will have to look into this, which file and line did you change this in ?
Comment #3
cableman0408 commentedThe issue have been fixed and will be part of the next release. Thanks.