Set subject of new newsletters to "Draft newsletter"
This commit is contained in:
@ -26,6 +26,7 @@ define(
|
||||
action: 'create',
|
||||
data: {
|
||||
type: type,
|
||||
subject: 'Draft newsletter',
|
||||
}
|
||||
}).done(function(response) {
|
||||
if(response.id !== undefined) {
|
||||
|
@ -250,6 +250,7 @@ class Newsletters {
|
||||
function create($data = array()) {
|
||||
$newsletter = Newsletter::create();
|
||||
$newsletter->type = $data['type'];
|
||||
$newsletter->subject = $data['subject'];
|
||||
$newsletter->body = '{}';
|
||||
|
||||
// try to load template data
|
||||
|
Reference in New Issue
Block a user