diff options
author | Mark Wells <mark@freeside.biz> | 2015-10-07 14:18:15 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2015-10-07 14:18:21 -0700 |
commit | fc672686f119da0b3b34fd3c73acc3fea81262e6 (patch) | |
tree | 3c86947579f6313f17ea8902b57e2a7095b8d7f9 /FS/FS/msg_template.pm | |
parent | 956df0bc6383ed0513d4dd00668f3b24c42ba1e4 (diff) |
#37098: convert one-shot email notices to use message templates
Diffstat (limited to 'FS/FS/msg_template.pm')
-rw-r--r-- | FS/FS/msg_template.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/FS/FS/msg_template.pm b/FS/FS/msg_template.pm index 4940388..d17fd41 100644 --- a/FS/FS/msg_template.pm +++ b/FS/FS/msg_template.pm @@ -66,7 +66,9 @@ global template. =item bcc_addr - Bcc all mail to this address. -=item disabled - disabled ('Y' or NULL). +=item disabled - disabled (NULL for not-disabled and selectable, 'D' for a +draft of a one-time message, 'C' for a completed one-time message, 'Y' for a +normal template disabled by user action). =back @@ -247,7 +249,7 @@ sub check { || $self->ut_text('msgname') || $self->ut_foreign_keyn('agentnum', 'agent', 'agentnum') || $self->ut_textn('mime_type') - || $self->ut_enum('disabled', [ '', 'Y' ] ) + || $self->ut_enum('disabled', [ '', 'Y', 'D', 'S' ] ) || $self->ut_textn('from_addr') || $self->ut_textn('bcc_addr') # fine for now, but change this to some kind of dynamic check if we |