From e47aadcd99b1d9f0ab46dfc261232215f669f3c7 Mon Sep 17 00:00:00 2001 From: alecpl Date: Mon, 2 Jun 2008 17:44:02 +0000 Subject: #1485098 --- program/steps/mail/compose.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'program') 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; -- cgit v1.2.3