Closed (fixed)
Project:
Simplenews Content Selection
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Feb 2012 at 13:50 UTC
Updated:
10 May 2022 at 12:09 UTC
Jump to comment: Most recent
Comments
Comment #1
Marko B commentedTried it and it is true, when creating NL without this module above then HTML is fine, so seems that SCS module doesnt respect defaults. Please admin move this issue to that module.
Comment #2
simon georges commentedYou can do it yourself by changing the "Project" field. Anyway, done.
Comment #3
Marko B commentedDidnt know i could, thanx.
Comment #4
Marko B commentedThe part of function _scs_create_newsletter where simplenews nodes is saved doesn't save
$newsletter->simplenews['s_format'] = strtolower(variable_get('scs_format', 'plain'));So there is no s_fomat variable later when the form is build in simplenews.module on line 403
That is why it is alyways plain text as default. Hope this is at least fixed in D7 version.
Comment #5
Anonymous (not verified) commentedTo solve this in function function _scs_create_newsletter I added this after node_save($newsletter);
$param_array['tid'] = 0; // We do not know the tid at that time
$param_array['s_status'] = 0; // send status is 0 at that time
$param_array['advanced']['s_format'] = $newsletter->simplenews['s_format'];
$param_array['advanced']['priority'] = $newsletter->priority;
$param_array['advanced']['receipt'] = $newsletter->receipt;
simplenews_newsletter_update($newsletter,$param_array);
Comment #6
vuilClose the issue as Fixed. Thank you.