@year ||= Date.today.year
@month ||= Date.today.month
@calendar = Redmine::Helpers::Calendar.new(Date.civil(@year, @month, 1), current_language, :month)
- @with_subprojects = params[:with_subprojects].nil? ? true : (params[:with_subprojects] == '1')
+ @with_subprojects = params[:with_subprojects].nil? ? Setting.display_subprojects_issues? : (params[:with_subprojects] == '1')
events = []
@project.issues_with_subprojects(@with_subprojects) do
events += Issue.find(:all,
@date_from = Date.civil(@year_from, @month_from, 1)
@date_to = (@date_from >> @months) - 1
- @with_subprojects = params[:with_subprojects].nil? ? true : (params[:with_subprojects] == '1')
+ @with_subprojects = params[:with_subprojects].nil? ? Setting.display_subprojects_issues? : (params[:with_subprojects] == '1')
@events = []
@project.issues_with_subprojects(@with_subprojects) do
clause = ''
if project && !@project.active_children.empty?
ids = [project.id]
- if has_filter?("subproject_id") && operator_for("subproject_id") == "="
- # include the selected subprojects
- ids += values_for("subproject_id").each(&:to_i)
- else
- # include all the subprojects unless 'none' is selected
- ids += project.active_children.collect{|p| p.id} unless has_filter?("subproject_id") && operator_for("subproject_id") == "!*"
+ if has_filter?("subproject_id")
+ case operator_for("subproject_id")
+ when '='
+ # include the selected subprojects
+ ids += values_for("subproject_id").each(&:to_i)
+ when '!*'
+ # main project only
+ else
+ # all subprojects
+ ids += project.active_children.collect{|p| p.id}
+ end
+ elsif Setting.display_subprojects_issues?
+ ids += project.active_children.collect{|p| p.id}
end
clause << "#{Issue.table_name}.project_id IN (%s)" % ids.join(',')
elsif project
<p><label><%= l(:setting_cross_project_issue_relations) %></label>
<%= check_box_tag 'settings[cross_project_issue_relations]', 1, Setting.cross_project_issue_relations? %><%= hidden_field_tag 'settings[cross_project_issue_relations]', 0 %></p>
+<p><label><%= l(:setting_display_subprojects_issues) %></label>
+<%= check_box_tag 'settings[display_subprojects_issues]', 1, Setting.display_subprojects_issues? %><%= hidden_field_tag 'settings[display_subprojects_issues]', 0 %></p>
+
<p><label><%= l(:setting_issues_export_limit) %></label>
<%= text_field_tag 'settings[issues_export_limit]', Setting.issues_export_limit, :size => 6 %></p>
</div>
- subject
- assigned_to
- updated_on
+display_subprojects_issues:
+ default: 1
# encodings used to convert repository files content to UTF-8
# multiple values accepted, comma separated
repositories_encodings:
field_comments_sorting: Afficher les commentaires
label_reverse_chronological_order: In reverse chronological order
label_preferences: Preferences
+setting_display_subprojects_issues: Display subprojects issues on main projects by default
field_comments_sorting: Afficher les commentaires
label_reverse_chronological_order: In reverse chronological order
label_preferences: Preferences
+setting_display_subprojects_issues: Display subprojects issues on main projects by default
field_comments_sorting: Afficher les commentaires
label_reverse_chronological_order: In reverse chronological order
label_preferences: Preferences
+setting_display_subprojects_issues: Display subprojects issues on main projects by default
setting_per_page_options: Objects per page options
setting_user_format: Users display format
setting_activity_days_default: Days displayed on project activity
+setting_display_subprojects_issues: Display subprojects issues on main projects by default
project_module_issue_tracking: Issue tracking
project_module_time_tracking: Time tracking
field_comments_sorting: Afficher les commentaires
label_reverse_chronological_order: In reverse chronological order
label_preferences: Preferences
+setting_display_subprojects_issues: Display subprojects issues on main projects by default
field_comments_sorting: Afficher les commentaires
label_reverse_chronological_order: In reverse chronological order
label_preferences: Preferences
+setting_display_subprojects_issues: Display subprojects issues on main projects by default
setting_per_page_options: Options d'objets affichés par page
setting_user_format: Format d'affichage des utilisateurs
setting_activity_days_default: Nombre de jours affichés sur l'activité des projets
+setting_display_subprojects_issues: Afficher par défaut les demandes des sous-projets sur les projets principaux
project_module_issue_tracking: Suivi des demandes
project_module_time_tracking: Suivi du temps passé
field_comments_sorting: Afficher les commentaires
label_reverse_chronological_order: In reverse chronological order
label_preferences: Preferences
+setting_display_subprojects_issues: Display subprojects issues on main projects by default
field_comments_sorting: Afficher les commentaires
label_reverse_chronological_order: In reverse chronological order
label_preferences: Preferences
+setting_display_subprojects_issues: Display subprojects issues on main projects by default
field_comments_sorting: Afficher les commentaires
label_reverse_chronological_order: In reverse chronological order
label_preferences: Preferences
+setting_display_subprojects_issues: Display subprojects issues on main projects by default
field_comments_sorting: Afficher les commentaires
label_reverse_chronological_order: In reverse chronological order
label_preferences: Preferences
+setting_display_subprojects_issues: Display subprojects issues on main projects by default
field_comments_sorting: Afficher les commentaires
label_reverse_chronological_order: In reverse chronological order
label_preferences: Preferences
+setting_display_subprojects_issues: Display subprojects issues on main projects by default
field_comments_sorting: Afficher les commentaires
label_reverse_chronological_order: In reverse chronological order
label_preferences: Preferences
+setting_display_subprojects_issues: Display subprojects issues on main projects by default
field_comments_sorting: Afficher les commentaires
label_reverse_chronological_order: In reverse chronological order
label_preferences: Preferences
+setting_display_subprojects_issues: Display subprojects issues on main projects by default
field_comments_sorting: Afficher les commentaires\r
label_reverse_chronological_order: In reverse chronological order\r
label_preferences: Preferences\r
+setting_display_subprojects_issues: Display subprojects issues on main projects by default\r
field_comments_sorting: Afficher les commentaires
label_reverse_chronological_order: In reverse chronological order
label_preferences: Preferences
+setting_display_subprojects_issues: Display subprojects issues on main projects by default
field_comments_sorting: Afficher les commentaires
label_reverse_chronological_order: In reverse chronological order
label_preferences: Preferences
+setting_display_subprojects_issues: Display subprojects issues on main projects by default
field_comments_sorting: Afficher les commentaires
label_reverse_chronological_order: In reverse chronological order
label_preferences: Preferences
+setting_display_subprojects_issues: Display subprojects issues on main projects by default
field_comments_sorting: Afficher les commentaires
label_reverse_chronological_order: In reverse chronological order
label_preferences: Preferences
+setting_display_subprojects_issues: Display subprojects issues on main projects by default
field_comments_sorting: Afficher les commentaires
label_reverse_chronological_order: In reverse chronological order
label_preferences: Preferences
+setting_display_subprojects_issues: Display subprojects issues on main projects by default
field_comments_sorting: Afficher les commentaires
label_reverse_chronological_order: In reverse chronological order
label_preferences: Preferences
+setting_display_subprojects_issues: Display subprojects issues on main projects by default
field_comments_sorting: Afficher les commentaires
label_reverse_chronological_order: In reverse chronological order
label_preferences: Preferences
+setting_display_subprojects_issues: Display subprojects issues on main projects by default
field_comments_sorting: Afficher les commentaires
label_reverse_chronological_order: In reverse chronological order
label_preferences: Preferences
+setting_display_subprojects_issues: Display subprojects issues on main projects by default