Feature #1739 » redmine_changeable_author_v2.1.7.patch
app/helpers/issues_helper.rb Sun Jul 26 07:10:55 2015 +0000 → app/helpers/issues_helper.rb Thu Aug 06 16:55:23 2015 +0200 | ||
---|---|---|
377 | 377 |
old_value = format_date(detail.old_value.to_date) if detail.old_value |
378 | 378 | |
379 | 379 |
when 'project_id', 'status_id', 'tracker_id', 'assigned_to_id', |
380 |
'priority_id', 'category_id', 'fixed_version_id' |
|
380 |
'priority_id', 'category_id', 'fixed_version_id', 'author_id'
|
|
381 | 381 |
value = find_name_by_reflection(field, detail.value) |
382 | 382 |
old_value = find_name_by_reflection(field, detail.old_value) |
383 | 383 |
app/models/issue.rb Sun Jul 26 07:10:55 2015 +0000 → app/models/issue.rb Thu Aug 06 16:55:23 2015 +0200 | ||
---|---|---|
386 | 386 |
'tracker_id', |
387 | 387 |
'status_id', |
388 | 388 |
'category_id', |
389 |
'author_id', |
|
389 | 390 |
'assigned_to_id', |
390 | 391 |
'priority_id', |
391 | 392 |
'fixed_version_id', |
app/views/issues/_attributes.html.erb Sun Jul 26 07:10:55 2015 +0000 → app/views/issues/_attributes.html.erb Thu Aug 06 16:55:23 2015 +0200 | ||
---|---|---|
3 | 3 |
<div class="splitcontent"> |
4 | 4 |
<div class="splitcontentleft"> |
5 | 5 |
<% if @issue.safe_attribute?('status_id') && @allowed_statuses.present? %> |
6 |
<% if User.current.allowed_to?(:edit_issue_author, @project) %> |
|
7 |
<p><%= f.select :author_id, (@issue.assignable_users.collect {|m| [m.name, m.id]}), :include_blank => false, :required => true %></p> |
|
8 |
<% end %> |
|
6 | 9 |
<p><%= f.select :status_id, (@allowed_statuses.collect {|p| [p.name, p.id]}), {:required => true}, |
7 | 10 |
:onchange => "updateIssueFrom('#{escape_javascript update_issue_form_path(@project, @issue)}')" %></p> |
8 | 11 |
<%= hidden_field_tag 'was_default_status', @issue.status_id, :id => nil if @issue.status == @issue.default_status %> |
app/views/issues/show.html.erb Sun Jul 26 07:10:55 2015 +0000 → app/views/issues/show.html.erb Thu Aug 06 16:55:23 2015 +0200 | ||
---|---|---|
35 | 35 | |
36 | 36 |
<table class="attributes"> |
37 | 37 |
<%= issue_fields_rows do |rows| |
38 |
rows.left l(:field_author), @issue.author, :class => 'author' |
|
38 | 39 |
rows.left l(:field_status), @issue.status.name, :class => 'status' |
39 | 40 |
rows.left l(:field_priority), @issue.priority.name, :class => 'priority' |
40 | 41 |
config/locales/cs.yml Sun Jul 26 07:10:55 2015 +0000 → config/locales/cs.yml Thu Aug 06 16:55:23 2015 +0200 | ||
---|---|---|
385 | 385 |
permission_add_issue_notes: Přidávání poznámek |
386 | 386 |
permission_edit_issue_notes: Upravování poznámek |
387 | 387 |
permission_edit_own_issue_notes: Upravování vlastních poznámek |
388 |
permission_edit_issue_author: Úprava autora |
|
388 | 389 |
permission_move_issues: Přesouvání úkolů |
389 | 390 |
permission_delete_issues: Mazání úkolů |
390 | 391 |
permission_manage_public_queries: Správa veřejných dotazů |
config/locales/en.yml Sun Jul 26 07:10:55 2015 +0000 → config/locales/en.yml Thu Aug 06 16:55:23 2015 +0200 | ||
---|---|---|
439 | 439 |
permission_add_issue_notes: Add notes |
440 | 440 |
permission_edit_issue_notes: Edit notes |
441 | 441 |
permission_edit_own_issue_notes: Edit own notes |
442 |
permission_edit_issue_author: Edit author |
|
442 | 443 |
permission_view_private_notes: View private notes |
443 | 444 |
permission_set_notes_private: Set notes as private |
444 | 445 |
permission_move_issues: Move issues |
config/locales/fr.yml Sun Jul 26 07:10:55 2015 +0000 → config/locales/fr.yml Thu Aug 06 16:55:23 2015 +0200 | ||
---|---|---|
457 | 457 |
permission_set_issues_private: Rendre les demandes publiques ou privées |
458 | 458 |
permission_set_own_issues_private: Rendre ses propres demandes publiques ou privées |
459 | 459 |
permission_add_issue_notes: Ajouter des notes |
460 |
permission_edit_issue_author: "Modifier l'auteur" |
|
460 | 461 |
permission_edit_issue_notes: Modifier les notes |
461 | 462 |
permission_edit_own_issue_notes: Modifier ses propres notes |
462 | 463 |
permission_view_private_notes: Voir les notes privées |
config/locales/ru.yml Sun Jul 26 07:10:55 2015 +0000 → config/locales/ru.yml Thu Aug 06 16:55:23 2015 +0200 | ||
---|---|---|
801 | 801 |
permission_edit_issues: Редактирование задач |
802 | 802 |
permission_edit_messages: Редактирование сообщений |
803 | 803 |
permission_edit_own_issue_notes: Редактирование собственных примечаний |
804 |
permission_edit_issue_author: Изменить автора |
|
804 | 805 |
permission_edit_own_messages: Редактирование собственных сообщений |
805 | 806 |
permission_edit_own_time_entries: Редактирование собственного учёта времени |
806 | 807 |
permission_edit_project: Редактирование проектов |
config/locales/sk.yml Sun Jul 26 07:10:55 2015 +0000 → config/locales/sk.yml Thu Aug 06 16:55:23 2015 +0200 | ||
---|---|---|
778 | 778 |
permission_rename_wiki_pages: Premenovanie wikistránok |
779 | 779 |
permission_edit_time_entries: Úprava záznamov o strávenom čase |
780 | 780 |
permission_edit_own_issue_notes: Úprava vlastných poznámok k úlohe |
781 |
permission_edit_issue_author: Úprava autora |
|
781 | 782 |
setting_gravatar_enabled: Používať používateľské Gravatar ikonky |
782 | 783 |
permission_edit_own_messages: Úprava vlastných správ |
783 | 784 |
permission_delete_own_messages: Mazanie vlastných správ |
config/locales/uk.yml Sun Jul 26 07:10:55 2015 +0000 → config/locales/uk.yml Thu Aug 06 16:55:23 2015 +0200 | ||
---|---|---|
778 | 778 |
permission_rename_wiki_pages: Rename wiki pages |
779 | 779 |
permission_edit_time_entries: Edit time logs |
780 | 780 |
permission_edit_own_issue_notes: Edit own notes |
781 |
permission_edit_issue_author: Змінити автора |
|
781 | 782 |
setting_gravatar_enabled: Use Gravatar user icons |
782 | 783 |
label_example: Example |
783 | 784 |
text_repository_usernames_mapping: "Select ou update the Redmine user mapped to each username found in the repository log.\nUsers with the same Redmine and repository username or email are automatically mapped." |
lib/redmine.rb Sun Jul 26 07:10:55 2015 +0000 → lib/redmine.rb Thu Aug 06 16:55:23 2015 +0200 | ||
---|---|---|
106 | 106 |
map.permission :add_issue_notes, {:issues => [:edit, :update], :journals => [:new], :attachments => :upload} |
107 | 107 |
map.permission :edit_issue_notes, {:journals => :edit}, :require => :loggedin |
108 | 108 |
map.permission :edit_own_issue_notes, {:journals => :edit}, :require => :loggedin |
109 |
map.permission :edit_issue_author, {} |
|
109 | 110 |
map.permission :view_private_notes, {}, :read => true, :require => :member |
110 | 111 |
map.permission :set_notes_private, {}, :require => :member |
111 | 112 |
map.permission :delete_issues, {:issues => :destroy}, :require => :member |