Closed (fixed)
Project:
RSVP
Version:
5.x-1.x-dev
Component:
Integration
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
8 Sep 2007 at 04:15 UTC
Updated:
3 Mar 2008 at 19:44 UTC
Whenever I attempt to "add" emails from one of the simplenews newsletters, I only get one email added; the rest are nowhere to be found. It will also add emails from the wrong newsletters. I don't know what could be wrong.
Here is the bit of code that returns the emails, I think. Any help would be really great.
/**
* Returns a list of members of newsletters created with Simplenews module.
*
* @param $rid int The RSVP ID.
* @return string List of members.
*/
function rsvp_list_simplenews($rid) {
if (module_exists('simplenews')) {
$rsvp = rsvp_load($rid);
$content = t('<h3>You may invite people subscribed to newsletters:</h3>');
$rows = array();
$header = array(t('Newsletter name'), array('data' => t('Operations')));
foreach (taxonomy_get_tree(_simplenews_get_vid()) as $term) {
$rows[] = array(
$term->name,
l(t('Add'), 'node/'. $rsvp->nid .'/rsvp/'. $rsvp->rid .'/attendees/simplenews/'. $term->tid,
array('onclick' => "$.get($(this).attr('href'), function(data){ $('#edit-invite-list').val(data); }); return false;")),
);
}
Comments
Comment #1
jaynano commentedSorry, here is the whole section for returning the emails.
Comment #2
owahab commentedCould you please provide the versions of Simplenews and RSVP?
Comment #3
jaynano commentedI'm using RSVP version 5.x-1.2, and Simplenews version 5.x-1.1. I noticed that when I do a manual export in simplenews (using the feature provided by simplenews), it returns the emails in this format: email@domain.net, email@domain.net, email@domain.net, etc... (seperated by commas). And RSVP asks to input the emails line by line. I don't know if that has anything to do with it.
Comment #4
owahab commentedThanks for the useful info.
Working on it.
Comment #5
owahab commentedCommitted. Thanks for your persistence.
Comment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.