Replacing active flag with status field.

This commit is contained in:
Martin Kamerbeek 2010-05-19 18:25:14 +02:00
parent 4a9cbfd91c
commit e7dd066630
4 changed files with 11 additions and 21 deletions

View file

@ -33,9 +33,9 @@ sub crud_definition {
sendDate => {
fieldType => 'dateTime',
},
active => {
fieldType => 'yesNo',
defaultValue => 0,
state => {
fieldType => 'text',
defaultValue => 'idle',
},
);
@ -285,7 +285,7 @@ sub www_sendBatchConfirm {
$self->queueEmails( $userIds );
$self->update( {
sendDate => $scheduled,
active => 1,
state => 'scheduled',
} );
return WebGUI::Mailing::Admin->new( $session )->www_view;