Przeglądaj źródła

Adding confirmation message when Sending mail in calendar/agenda.php -refs #6926

unknown 11 lat temu
rodzic
commit
cf99dcdbd3
1 zmienionych plików z 6 dodań i 0 usunięć
  1. 6 0
      main/calendar/agenda.php

+ 6 - 0
main/calendar/agenda.php

@@ -244,11 +244,17 @@ if (api_is_allowed_to_edit(false, true) OR
                     $end = mktime(23, 59, 59, $end_m, $end_d, $end_y);
                     $res = agenda_add_repeat_item($course_info, $id, $_POST['repeat_type'], $end, $_POST['selected_form'], $safe_file_comment);
                 }
+                $mailSent = 0;
                 if (isset($_POST['add_announcement'])) {
                     $ann_id = store_agenda_item_as_announcement($id);
                     AnnouncementManager::send_email($ann_id);
+                    $mailSent = 1;
+                    
                 }
                 Display::display_confirmation_message(get_lang('AddSuccess'));
+                if ($mailSent == 1) {
+                    Display::display_confirmation_message(get_lang('AdditionalMailWasSentToSelectedUsers'));
+                }
             } else {
                 show_add_form();
             }