Download & Extend

Link to translation source newsletter in newsletter editing form is incomplete for subsites.

Project:Simplenews
Version:6.x-1.0-rc6
Component:Code
Category:bug report
Priority:minor
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

On trying to send a translated newsletter from the newsletter node editing form, you are presented with a link to the translation source newsletter. This link is incomplete for Drupal subsites.

Minor modification needed in function simplenews_form_alter in simplenews.module.
$form['simplenews']['#description'] = t('This newsletter issue is part of a translation set. Sending this set is controlled from the <a href="@link">translation source newsletter</a>.', array('@link' => '/node/'. $form['tnid']['#value']));
...is the current code for this link.

Add base_path() to the link and the link works for subsites too:

$form['simplenews']['#description'] = t('This newsletter issue is part of a translation set. Sending this set is controlled from the <a href="@link">translation source newsletter</a>.', array('@link' => base_path() . '/node/'. $form['tnid']['#value']));

Comments

#1

Priority:normal» minor
Status:active» fixed

Attached patch is committed to 6.x-1.x and 6.x-2.x branch. The fix will be available in the next dev release.

#2

Status:fixed» closed (fixed)

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

nobody click here