Patch #2013 » skip_notification.patch
app/controllers/issues_controller.rb (リビジョン 31) | ||
---|---|---|
184 | 184 |
if !journal.new_record? |
185 | 185 |
# Only send notification if something was actually changed |
186 | 186 |
flash[:notice] = l(:notice_successful_update) |
187 |
Mailer.deliver_issue_edit(journal) if Setting.notified_events.include?('issue_updated') |
|
187 |
Mailer.deliver_issue_edit(journal) if Setting.notified_events.include?('issue_updated') and params[:skip_notify].blank?
|
|
188 | 188 |
end |
189 | 189 |
redirect_to(params[:back_to] || {:action => 'show', :id => @issue}) |
190 | 190 |
end |
app/views/issues/_edit.rhtml (リビジョン 31) | ||
---|---|---|
26 | 26 |
</div> |
27 | 27 |
<p><%= time_entry.text_field :comments, :size => 60 %></p> |
28 | 28 |
<% @time_entry.custom_field_values.each do |value| %> |
29 |
<p><%= custom_field_tag_with_label :time_entry, value %></p>
|
|
29 |
<p><%= custom_field_tag_with_label :time_entry, value %></p>
|
|
30 | 30 |
<% end %> |
31 | 31 |
<% end %> |
32 | 32 |
</fieldset> |
33 | 33 |
<% end %> |
34 |
|
|
34 | ||
35 | 35 |
<fieldset><legend><%= l(:field_notes) %></legend> |
36 | 36 |
<%= text_area_tag 'notes', @notes, :cols => 60, :rows => 10, :class => 'wiki-edit' %> |
37 | 37 |
<%= wikitoolbar_for 'notes' %> |
38 |
|
|
38 | ||
39 | 39 |
<p><%=l(:label_attachment_plural)%><br /><%= render :partial => 'attachments/form' %></p> |
40 | 40 |
</fieldset> |
41 | 41 |
</div> |
42 |
|
|
42 | ||
43 | 43 |
<%= f.hidden_field :lock_version %> |
44 | 44 |
<%= submit_tag l(:button_submit) %> |
45 |
<%= link_to_remote l(:label_preview),
|
|
45 |
<%= link_to_remote l(:label_preview), |
|
46 | 46 |
{ :url => { :controller => 'issues', :action => 'preview', :project_id => @project, :id => @issue }, |
47 | 47 |
:method => 'post', |
48 | 48 |
:update => 'preview', |
49 | 49 |
:with => 'Form.serialize("issue-form")', |
50 | 50 |
:complete => "Element.scrollTo('preview')" |
51 | 51 |
}, :accesskey => accesskey(:preview) %> |
52 |
<label for=""><%= check_box_tag :skip_notify %><%= l(:label_skip_notify) %></label> |
|
52 | 53 |
<% end %> |
53 | 54 | |
54 | 55 |
<div id="preview" class="wiki"></div> |
lang/lt.yml (リビジョン 31) | ||
---|---|---|
642 | 642 |
notice_unable_delete_version: Neimanoma panaikinti versiją |
643 | 643 |
label_renamed: pervardintas |
644 | 644 |
label_copied: nukopijuotas |
645 |
label_skip_notify: Skip notification |
lang/uk.yml (リビジョン 31) | ||
---|---|---|
642 | 642 |
notice_unable_delete_version: Unable to delete version |
643 | 643 |
label_renamed: renamed |
644 | 644 |
label_copied: copied |
645 |
label_skip_notify: Skip notification |
lang/ro.yml (リビジョン 31) | ||
---|---|---|
640 | 640 |
notice_unable_delete_version: Unable to delete version |
641 | 641 |
label_renamed: renamed |
642 | 642 |
label_copied: copied |
643 |
label_skip_notify: Skip notification |
lang/zh.yml (リビジョン 31) | ||
---|---|---|
641 | 641 |
enumeration_issue_priorities: 问题优先级 |
642 | 642 |
enumeration_doc_categories: 文档类别 |
643 | 643 |
enumeration_activities: 活动(时间跟踪) |
644 |
label_skip_notify: Skip notification |
lang/ca.yml (リビジョン 31) | ||
---|---|---|
642 | 642 |
setting_commit_logs_encoding: Commit messages encoding |
643 | 643 |
label_renamed: renamed |
644 | 644 |
label_copied: copied |
645 |
label_skip_notify: Skip notification |
lang/pt.yml (リビジョン 31) | ||
---|---|---|
640 | 640 |
notice_unable_delete_version: Impossível apagar esta versão |
641 | 641 |
label_renamed: renomeado |
642 | 642 |
label_copied: copiado |
643 |
label_skip_notify: Skip notification |
lang/da.yml (リビジョン 31) | ||
---|---|---|
641 | 641 |
enumeration_issue_priorities: Sagsprioriteter |
642 | 642 |
enumeration_doc_categories: Dokumentkategorier |
643 | 643 |
enumeration_activities: Aktiviteter (tidsregistrering) |
644 |
label_skip_notify: Skip notification |
lang/pt-br.yml (リビジョン 31) | ||
---|---|---|
641 | 641 |
notice_unable_delete_version: Unable to delete version |
642 | 642 |
label_renamed: renamed |
643 | 643 |
label_copied: copied |
644 |
label_skip_notify: Skip notification |
lang/sr.yml (リビジョン 31) | ||
---|---|---|
641 | 641 |
notice_unable_delete_version: Unable to delete version |
642 | 642 |
label_renamed: renamed |
643 | 643 |
label_copied: copied |
644 |
label_skip_notify: Skip notification |
lang/tr.yml (リビジョン 31) | ||
---|---|---|
641 | 641 |
notice_unable_delete_version: Unable to delete version |
642 | 642 |
label_renamed: renamed |
643 | 643 |
label_copied: copied |
644 |
label_skip_notify: Skip notification |
lang/ru.yml (リビジョン 31) | ||
---|---|---|
673 | 673 |
text_wiki_destroy_confirmation: Вы уверены, что хотите удалить данную Wiki и все содержимое? |
674 | 674 |
text_workflow_edit: Выберите роль и трекер для редактирования последовательности состояний |
675 | 675 | |
676 |
label_skip_notify: Skip notification |
lang/de.yml (リビジョン 31) | ||
---|---|---|
641 | 641 |
enumeration_issue_priorities: Ticket-Prioritäten |
642 | 642 |
enumeration_doc_categories: Dokumentenkategorien |
643 | 643 |
enumeration_activities: Aktivitäten (Zeiterfassung) |
644 |
label_skip_notify: Skip notification |
lang/bg.yml (リビジョン 31) | ||
---|---|---|
640 | 640 |
notice_unable_delete_version: Unable to delete version |
641 | 641 |
label_renamed: renamed |
642 | 642 |
label_copied: copied |
643 |
label_skip_notify: Skip notification |
lang/sv.yml (リビジョン 31) | ||
---|---|---|
641 | 641 |
notice_unable_delete_version: Unable to delete version |
642 | 642 |
label_renamed: renamed |
643 | 643 |
label_copied: copied |
644 |
label_skip_notify: Skip notification |
lang/ja.yml (リビジョン 31) | ||
---|---|---|
641 | 641 |
notice_unable_delete_version: Unable to delete version |
642 | 642 |
label_renamed: renamed |
643 | 643 |
label_copied: copied |
644 |
label_skip_notify: この更新を通知しない |
lang/he.yml (リビジョン 31) | ||
---|---|---|
640 | 640 |
notice_unable_delete_version: Unable to delete version |
641 | 641 |
label_renamed: renamed |
642 | 642 |
label_copied: copied |
643 |
label_skip_notify: Skip notification |
lang/fi.yml (リビジョン 31) | ||
---|---|---|
640 | 640 |
notice_unable_delete_version: Unable to delete version |
641 | 641 |
label_renamed: renamed |
642 | 642 |
label_copied: copied |
643 |
label_skip_notify: Skip notification |
lang/en.yml (リビジョン 31) | ||
---|---|---|
641 | 641 |
enumeration_issue_priorities: Issue priorities |
642 | 642 |
enumeration_doc_categories: Document categories |
643 | 643 |
enumeration_activities: Activities (time tracking) |
644 |
label_skip_notify: Skip notification |
lang/cs.yml (リビジョン 31) | ||
---|---|---|
645 | 645 |
notice_unable_delete_version: Unable to delete version |
646 | 646 |
label_renamed: renamed |
647 | 647 |
label_copied: copied |
648 |
label_skip_notify: Skip notification |
lang/fr.yml (リビジョン 31) | ||
---|---|---|
641 | 641 |
enumeration_doc_categories: Catégories des documents |
642 | 642 |
enumeration_activities: Activités (suivi du temps) |
643 | 643 |
notice_unable_delete_version: Unable to delete version |
644 |
label_skip_notify: Skip notification |
lang/es.yml (リビジョン 31) | ||
---|---|---|
643 | 643 |
notice_unable_delete_version: Unable to delete version |
644 | 644 |
label_renamed: renamed |
645 | 645 |
label_copied: copied |
646 |
label_skip_notify: Skip notification |
lang/nl.yml (リビジョン 31) | ||
---|---|---|
643 | 643 |
notice_unable_delete_version: Onmogelijk om deze versie te verwijderen. |
644 | 644 |
label_renamed: hernoemt |
645 | 645 |
label_copied: gekopieerd |
646 |
label_skip_notify: Skip notification |
lang/ko.yml (リビジョン 31) | ||
---|---|---|
640 | 640 |
notice_unable_delete_version: Unable to delete version |
641 | 641 |
label_renamed: renamed |
642 | 642 |
label_copied: copied |
643 |
label_skip_notify: Skip notification |
lang/zh-tw.yml (リビジョン 31) | ||
---|---|---|
641 | 641 |
enumeration_issue_priorities: 項目優先權 |
642 | 642 |
enumeration_doc_categories: 文件分類 |
643 | 643 |
enumeration_activities: 活動 (時間追蹤) |
644 |
label_skip_notify: Skip notification |
lang/pl.yml (リビジョン 31) | ||
---|---|---|
640 | 640 |
notice_unable_delete_version: Unable to delete version |
641 | 641 |
label_renamed: renamed |
642 | 642 |
label_copied: copied |
643 |
label_skip_notify: Skip notification |
lang/th.yml (リビジョン 31) | ||
---|---|---|
643 | 643 |
notice_unable_delete_version: Unable to delete version |
644 | 644 |
label_renamed: renamed |
645 | 645 |
label_copied: copied |
646 |
label_skip_notify: Skip notification |
lang/it.yml (リビジョン 31) | ||
---|---|---|
640 | 640 |
notice_unable_delete_version: Impossibile cancellare la versione |
641 | 641 |
label_renamed: rinominato |
642 | 642 |
label_copied: copiato |
643 |
label_skip_notify: Skip notification |
lang/hu.yml (リビジョン 31) | ||
---|---|---|
641 | 641 |
notice_unable_delete_version: A verziót nem lehet törölni |
642 | 642 |
label_renamed: átnevezve |
643 | 643 |
label_copied: lemásolva |
644 |
label_skip_notify: Skip notification |
lang/no.yml (リビジョン 31) | ||
---|---|---|
641 | 641 |
notice_unable_delete_version: Unable to delete version |
642 | 642 |
label_renamed: renamed |
643 | 643 |
label_copied: copied |
644 |
label_skip_notify: Skip notification |