diff --git a/code/Newsletter/SubscribeForm.php b/code/Newsletter/SubscribeForm.php index 6d2aa954..e61d2284 100755 --- a/code/Newsletter/SubscribeForm.php +++ b/code/Newsletter/SubscribeForm.php @@ -75,10 +75,14 @@ class SubscribeForm extends UserDefinedForm { $newsletterTypes = DataObject::get( 'NewsletterType' ); $availableNewsletters = array(); + $nlCheckboxes = array(); + foreach( $this->Newsletters() as $subscribeTo ) $availableNewsletters[] = $subscribeTo->ID; + + // create a checkbox for each newsletter if($newsletterTypes && is_object($newsletterTypes)) { foreach( $newsletterTypes as $newsletterType )