summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-06-02 17:44:02 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-06-02 17:44:02 +0000
commit955fd13071c630bd06586c0a0ac1a19e64ff5c7b (patch)
tree35f2413449fe07e130fa906a037828d90407a9d5 /roundcubemail/program/steps
parent6628668e2fbedc5ccd7d47f7a2147033fc8ea93e (diff)
#1485098
git-svn-id: https://svn.roundcube.net/trunk@1465 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps')
-rw-r--r--roundcubemail/program/steps/mail/compose.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/roundcubemail/program/steps/mail/compose.inc b/roundcubemail/program/steps/mail/compose.inc
index e56420b94..c56bbd576 100644
--- a/roundcubemail/program/steps/mail/compose.inc
+++ b/roundcubemail/program/steps/mail/compose.inc
@@ -722,7 +722,7 @@ function rcmail_priority_selector($attrib)
function rcmail_receipt_checkbox($attrib)
{
- global $MESSAGE;
+ global $MESSAGE, $compose_mode;
list($form_start, $form_end) = get_form_tags($attrib);
unset($attrib['form']);
@@ -735,7 +735,8 @@ function rcmail_receipt_checkbox($attrib)
$checkbox = new html_checkbox($attrib);
$out = $form_start ? "$form_start\n" : '';
- $out .= $checkbox->show($MESSAGE->headers->mdn_to ? 1 : 0);
+ $out .= $checkbox->show(
+ $compose_mode == RCUBE_COMPOSE_DRAFT && $MESSAGE->headers->mdn_to ? 1 : 0);
$out .= $form_end ? "\n$form_end" : '';
return $out;