From a628b0f186cf4d182ce5cee1a497ad42c5246406 Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Sat, 24 Jul 2010 00:19:32 +0000 Subject: [PATCH 001/222] Force-clear the default value for migration from :string to :text. #5846 #5771 This is a special case for MySQL in Win32. Contributed by Holger Just. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3860 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/change.rb | 5 +++-- .../20100705164950_change_changes_path_length_limit.rb | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/models/change.rb b/app/models/change.rb index e5c1585b4..657652c9d 100644 --- a/app/models/change.rb +++ b/app/models/change.rb @@ -19,12 +19,13 @@ class Change < ActiveRecord::Base belongs_to :changeset validates_presence_of :changeset_id, :action, :path + before_save :init_path def relative_path changeset.repository.relative_path(path) end - def before_save - path ||= "" + def init_path + self.path ||= "" end end diff --git a/db/migrate/20100705164950_change_changes_path_length_limit.rb b/db/migrate/20100705164950_change_changes_path_length_limit.rb index 62ba4ec22..62b8644a4 100644 --- a/db/migrate/20100705164950_change_changes_path_length_limit.rb +++ b/db/migrate/20100705164950_change_changes_path_length_limit.rb @@ -1,6 +1,9 @@ class ChangeChangesPathLengthLimit < ActiveRecord::Migration def self.up + # these are two steps to please MySQL 5 on Win32 + change_column :changes, :path, :text, :default => nil, :null => true change_column :changes, :path, :text, :null => false + change_column :changes, :from_path, :text end From 90490c92a0648a7bb389665c37b2ba5f4a1b7a08 Mon Sep 17 00:00:00 2001 From: Azamat Hackimov Date: Sat, 24 Jul 2010 09:47:31 +0000 Subject: [PATCH 002/222] Translation updates * fr (#5912) * ru * zh (#5910) git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3863 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- config/locales/fr.yml | 20 ++++++++++---------- config/locales/ru.yml | 2 +- config/locales/zh.yml | 24 ++++++++++++------------ 3 files changed, 23 insertions(+), 23 deletions(-) diff --git a/config/locales/fr.yml b/config/locales/fr.yml index fe4f4daf5..305dee7c0 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -916,14 +916,14 @@ fr: enumeration_system_activity: Activité système label_board_sticky: Sticky label_board_locked: Verrouillé - error_unable_delete_issue_status: Unable to delete issue status - error_can_not_delete_custom_field: Unable to delete custom field - error_unable_to_connect: Unable to connect ({{value}}) - error_can_not_remove_role: This role is in use and can not be deleted. - error_can_not_delete_tracker: This tracker contains issues and can't be deleted. + error_unable_delete_issue_status: Impossible de supprimer le statut de demande + error_can_not_delete_custom_field: Impossible de supprimer le champ personnalisé + error_unable_to_connect: Connexion impossible ({{value}}) + error_can_not_remove_role: Ce rôle est utilisé et ne peut pas être supprimé. + error_can_not_delete_tracker: Ce tracker contient des demandes et ne peut pas être supprimé. field_principal: Principal - notice_failed_to_save_members: "Failed to save member(s): {{errors}}." - text_zoom_out: Zoom out - text_zoom_in: Zoom in - notice_unable_delete_time_entry: Unable to delete time log entry. - label_overall_spent_time: Overall spent time + notice_failed_to_save_members: "Erreur lors de la sauvegarde des membres: {{errors}}." + text_zoom_out: Zoom arrière + text_zoom_in: Zoom avant + notice_unable_delete_time_entry: Impossible de supprimer le temps passé. + label_overall_spent_time: Temps passé global diff --git a/config/locales/ru.yml b/config/locales/ru.yml index cce123622..645db4de8 100644 --- a/config/locales/ru.yml +++ b/config/locales/ru.yml @@ -1019,7 +1019,7 @@ ru: label_close_versions: Закрыть завершенные версии label_board_sticky: Прикреплена label_board_locked: Заблокирована - field_principal: Глава + field_principal: Имя text_zoom_out: Отдалить text_zoom_in: Приблизить notice_unable_delete_time_entry: Невозможно удалить запись журнала. diff --git a/config/locales/zh.yml b/config/locales/zh.yml index 6fdb33f52..389707d5b 100644 --- a/config/locales/zh.yml +++ b/config/locales/zh.yml @@ -907,22 +907,22 @@ zh: label_board_sticky: 置顶 label_board_locked: 锁定 permission_export_wiki_pages: 导出 wiki 页面 - setting_cache_formatted_text: 缓存已格式化文字 + setting_cache_formatted_text: 缓存格式化文本 permission_manage_project_activities: 管理项目活动 error_unable_delete_issue_status: 无法删除问题状态 - label_profile: 配置概况 - permission_manage_subtasks: Manage subtasks - field_parent_issue: Parent task - label_subtask_plural: Subtasks - label_project_copy_notifications: Send email notifications during the project copy + label_profile: 简介 + permission_manage_subtasks: 管理子任务 + field_parent_issue: 父任务 + label_subtask_plural: 子任务 + label_project_copy_notifications: 复制项目时发送邮件通知 error_can_not_delete_custom_field: 不能删除自定义属性 error_unable_to_connect: 不能连接到 ({{value}}) error_can_not_remove_role: 该角色正在使用中, 不能删除. error_can_not_delete_tracker: 该跟踪标签包含问题, 不能删除. field_principal: Principal - label_my_page_block: My page block - notice_failed_to_save_members: "Failed to save member(s): {{errors}}." - text_zoom_out: Zoom out - text_zoom_in: Zoom in - notice_unable_delete_time_entry: Unable to delete time log entry. - label_overall_spent_time: Overall spent time + label_my_page_block: 我的工作台模块 + notice_failed_to_save_members: "成员保存失败:{{errors}}。" + text_zoom_out: 缩小 + text_zoom_in: 放大 + notice_unable_delete_time_entry: 无法删除工时记录。 + label_overall_spent_time: 所有项目耗用工时 From 7f49f07e9a357a6290b05af79b75960e298bd41a Mon Sep 17 00:00:00 2001 From: Azamat Hackimov Date: Sat, 24 Jul 2010 10:26:53 +0000 Subject: [PATCH 003/222] Try to resolve bug #3922 git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3864 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- config/locales/en-GB.yml | 2 +- config/locales/en.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/locales/en-GB.yml b/config/locales/en-GB.yml index 2c19c4f49..42f173b82 100644 --- a/config/locales/en-GB.yml +++ b/config/locales/en-GB.yml @@ -221,7 +221,7 @@ en-GB: field_tracker: Tracker field_subject: Subject field_due_date: Due date - field_assigned_to: Assigned to + field_assigned_to: Assignee field_priority: Priority field_fixed_version: Target version field_user: User diff --git a/config/locales/en.yml b/config/locales/en.yml index 3ab257825..4ba6df5c5 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -224,7 +224,7 @@ en: field_tracker: Tracker field_subject: Subject field_due_date: Due date - field_assigned_to: Assigned to + field_assigned_to: Assignee field_priority: Priority field_fixed_version: Target version field_user: User From a9a4e0d6b8f1c3c08e927a49d213f21931d4071f Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 25 Jul 2010 09:29:17 +0000 Subject: [PATCH 004/222] Moves code to controller. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3865 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/versions_controller.rb | 3 +++ app/views/versions/show.rhtml | 7 ++----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/controllers/versions_controller.rb b/app/controllers/versions_controller.rb index 05c9743eb..a9470cb85 100644 --- a/app/controllers/versions_controller.rb +++ b/app/controllers/versions_controller.rb @@ -27,6 +27,9 @@ class VersionsController < ApplicationController helper :projects def show + @issues = @version.fixed_issues.find(:all, + :include => [:status, :tracker, :priority], + :order => "#{Tracker.table_name}.position, #{Issue.table_name}.id") end def new diff --git a/app/views/versions/show.rhtml b/app/views/versions/show.rhtml index 18bc6bc45..79de5984b 100644 --- a/app/views/versions/show.rhtml +++ b/app/views/versions/show.rhtml @@ -32,13 +32,10 @@ <%= render :partial => 'versions/overview', :locals => {:version => @version} %> <%= render(:partial => "wiki/content", :locals => {:content => @version.wiki_page.content}) if @version.wiki_page %> -<% issues = @version.fixed_issues.find(:all, - :include => [:status, :tracker, :priority], - :order => "#{Tracker.table_name}.position, #{Issue.table_name}.id") %> -<% if issues.size > 0 %> +<% if @issues.present? %>