diff options
author | Mark Wells <mark@freeside.biz> | 2013-11-16 18:22:29 -0800 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2013-11-16 18:22:29 -0800 |
commit | 84919ed60de29dc4ccf42d7930c6178eedc51f36 (patch) | |
tree | d3f7a54d73e2c50527b72b211feddcc22a6a4b63 /FS | |
parent | 7af50f45c514a0e9ae27c60b7aa6e9b3c8b48557 (diff) |
UI to disable message templates, #26035
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/part_event/Action/letter.pm | 1 | ||||
-rw-r--r-- | FS/FS/part_event/Action/notice.pm | 1 | ||||
-rw-r--r-- | FS/FS/part_event/Action/notice_to.pm | 1 | ||||
-rw-r--r-- | FS/FS/part_event/Action/svc_acct_notice.pm | 1 | ||||
-rw-r--r-- | FS/FS/part_export/rt_ticket.pm | 2 | ||||
-rw-r--r-- | FS/FS/part_export/send_email.pm | 2 |
6 files changed, 6 insertions, 2 deletions
diff --git a/FS/FS/part_event/Action/letter.pm b/FS/FS/part_event/Action/letter.pm index 57b7b7783..835dec2b9 100644 --- a/FS/FS/part_event/Action/letter.pm +++ b/FS/FS/part_event/Action/letter.pm @@ -20,6 +20,7 @@ sub option_fields { 'type' => 'select-table', 'table' => 'msg_template', 'name_col' => 'msgname', + 'hashref' => { disabled => '' }, 'disable_empty' => 1, }, ); diff --git a/FS/FS/part_event/Action/notice.pm b/FS/FS/part_event/Action/notice.pm index 8e22c6844..7c8ed1682 100644 --- a/FS/FS/part_event/Action/notice.pm +++ b/FS/FS/part_event/Action/notice.pm @@ -19,6 +19,7 @@ sub option_fields { 'msgnum' => { 'label' => 'Template', 'type' => 'select-table', 'table' => 'msg_template', + 'hashref' => { disabled => '' }, 'name_col' => 'msgname', 'disable_empty' => 1, }, diff --git a/FS/FS/part_event/Action/notice_to.pm b/FS/FS/part_event/Action/notice_to.pm index 194aeb84f..d300e3385 100644 --- a/FS/FS/part_event/Action/notice_to.pm +++ b/FS/FS/part_event/Action/notice_to.pm @@ -24,6 +24,7 @@ sub option_fields { 'type' => 'select-table', 'table' => 'msg_template', 'name_col' => 'msgname', + 'hashref' => { disabled => '' }, 'disable_empty' => 1, }, ); diff --git a/FS/FS/part_event/Action/svc_acct_notice.pm b/FS/FS/part_event/Action/svc_acct_notice.pm index d71a1371a..97a4ad686 100644 --- a/FS/FS/part_event/Action/svc_acct_notice.pm +++ b/FS/FS/part_event/Action/svc_acct_notice.pm @@ -18,6 +18,7 @@ sub option_fields { 'type' => 'select-table', 'table' => 'msg_template', 'name_col' => 'msgname', + 'hashref' => { disabled => '' }, 'disable_empty' => 1, }, ); diff --git a/FS/FS/part_export/rt_ticket.pm b/FS/FS/part_export/rt_ticket.pm index 7ae6105a0..72e387c56 100644 --- a/FS/FS/part_export/rt_ticket.pm +++ b/FS/FS/part_export/rt_ticket.pm @@ -21,7 +21,7 @@ my %template_select = ( %templates = (0 => '', map { $_->msgnum, $_->msgname } qsearch({ table => 'msg_template', - hashref => {}, + hashref => { disabled => '' }, order_by => 'ORDER BY msgnum ASC' }) ); diff --git a/FS/FS/part_export/send_email.pm b/FS/FS/part_export/send_email.pm index 6ba131f18..1fcb828b7 100644 --- a/FS/FS/part_export/send_email.pm +++ b/FS/FS/part_export/send_email.pm @@ -21,7 +21,7 @@ my %template_select = ( %templates = (0 => '', map { $_->msgnum, $_->msgname } qsearch({ table => 'msg_template', - hashref => {}, + hashref => { disabled => 1 }, order_by => 'ORDER BY msgnum ASC' }) ); |