The name field appears in individual newsletter blocks, but it doesn't appear in SimpleNews V2 multi subscription block.

Comments

sgabe’s picture

If you are using Simplenews 2.x you need to install Simplenews RealName 6.x-2.x-dev.

sgabe’s picture

Priority: Major » Normal
Status: Active » Closed (fixed)

No activity, closing issue.

harald_’s picture

Same issue in 7.x-1.0-alpha2!

edit: Looks in code as if it were never planned...

harald_’s picture

Issue summary: View changes
Status: Closed (fixed) » Active
misterpo’s picture

Same here with Drupal 7.26 and Simplenews RealName 7.x-1.0-alpha2.

misterpo’s picture

Sorry to insist but is it planned to fix this very annoying bug ?

danielapsmaior’s picture

I think I got it working by changing the lines:

function simplenews_realname_form_alter(&$form, &$form_state, $form_id) {
(...)
// Add textfield for real name to subscription forms.
//if (strpos($form_id, 'simplenews_block_form') !== FALSE || $form_id == 'simplenews_subscription_manager_form') {
if (strpos($form_id, 'simplenews_block_form') !== FALSE || $form_id == 'simplenews_subscriptions_multi_block_form' || $form_id == 'simplenews_subscription_manager_form')

// Subscription blocks.
//if (strpos($form_id, 'simplenews_block_form') !== FALSE) {
if (strpos($form_id, 'simplenews_block_form') !== FALSE || $form_id == 'simplenews_subscriptions_multi_block_form' ) {

function simplenews_realname_block_form_submit($form, &$form_state) {
(...)
// $action = $form_state['values']['action'];
$action = (isset($form_state['values']['action'])) ? $form_state['values']['action'] : 'subscribe';

Christopher Riley’s picture

This worked for me any plans on getting this committed?

  • sgabe committed 25b79a3 on 7.x-1.x authored by danielapsmaior
    Issue #1029428 by danielapsmaior, Stephen Ollman: Missing name field in...
sgabe’s picture

Version: 6.x-1.0-alpha3 » 7.x-1.0-alpha2
Status: Active » Fixed

Modifications in #7 have been committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.