diff options
author | alecpl <alec@alec.pl> | 2008-06-02 17:44:02 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2008-06-02 17:44:02 +0000 |
commit | e47aadcd99b1d9f0ab46dfc261232215f669f3c7 (patch) | |
tree | c4035db7c03f1c8a63f6ef10dd5d2879969b894c /program/steps | |
parent | c5fb694f36374e9750de93acbec83597bc039738 (diff) |
#1485098
Diffstat (limited to 'program/steps')
-rw-r--r-- | program/steps/mail/compose.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc index e56420b94..c56bbd576 100644 --- a/program/steps/mail/compose.inc +++ b/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; |