diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index 7b62312b..165333e7 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -463,7 +463,7 @@ class ProjectsController < ApplicationController
# finish on sunday
@date_to = @date_to + (7-@date_to.cwday)
- @issues = @project.issues.find(:all, :include => :tracker, :conditions => ["((start_date>=? and start_date<=?) or (due_date>=? and due_date<=?))", @date_from, @date_to, @date_from, @date_to])
+ @issues = @project.issues.find(:all, :include => [:tracker, :status, :assigned_to, :priority], :conditions => ["((start_date>=? and start_date<=?) or (due_date>=? and due_date<=?))", @date_from, @date_to, @date_from, @date_to])
render :layout => false if request.xhr?
end
@@ -485,7 +485,7 @@ class ProjectsController < ApplicationController
@date_from = Date.civil(@year_from, @month_from, 1)
@date_to = (@date_from >> @months) - 1
- @issues = @project.issues.find(:all, :order => "start_date, due_date", :include => [:tracker, :status, :author, :priority], :conditions => ["(((start_date>=? and start_date<=?) or (due_date>=? and due_date<=?) or (start_date and due_date>?)) and start_date is not null and due_date is not null)", @date_from, @date_to, @date_from, @date_to, @date_from, @date_to])
+ @issues = @project.issues.find(:all, :order => "start_date, due_date", :include => [:tracker, :status, :assigned_to, :priority], :conditions => ["(((start_date>=? and start_date<=?) or (due_date>=? and due_date<=?) or (start_date and due_date>?)) and start_date is not null and due_date is not null)", @date_from, @date_to, @date_from, @date_to, @date_from, @date_to])
if params[:output]=='pdf'
@options_for_rfpdf ||= {}
diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb
index d7325893..cacc7f53 100644
--- a/app/helpers/issues_helper.rb
+++ b/app/helpers/issues_helper.rb
@@ -56,12 +56,12 @@ module IssuesHelper
unless no_html
label = content_tag('strong', label)
- old_value = content_tag("i", h(old_value)) if old_value
- old_value = content_tag("strike", h(old_value)) if old_value and !value
+ old_value = content_tag("i", h(old_value)) if detail.old_value
+ old_value = content_tag("strike", old_value) if detail.old_value and (!detail.value or detail.value.empty?)
value = content_tag("i", h(value)) if value
end
- if value
+ if detail.value and !detail.value.empty?
if old_value
label + " " + l(:text_journal_changed, old_value, value)
else
diff --git a/app/views/issues/_tooltip.rhtml b/app/views/issues/_tooltip.rhtml
new file mode 100644
index 00000000..d7b555e4
--- /dev/null
+++ b/app/views/issues/_tooltip.rhtml
@@ -0,0 +1,6 @@
+<%= link_to "#{issue.tracker.name} ##{issue.id}", { :controller => 'issues', :action => 'show', :id => issue } %>: <%=h issue.subject %>
+
+<%= l(:field_start_date) %>: <%= format_date(issue.start_date) %>
+<%= l(:field_due_date) %>: <%= format_date(issue.due_date) %>
+<%= l(:field_assigned_to) %>: <%= issue.assigned_to ? issue.assigned_to.name : "-" %>
+<%= l(:field_priority) %>: <%= issue.priority.name %>
diff --git a/app/views/projects/calendar.rhtml b/app/views/projects/calendar.rhtml
index b750b0b5..809d593d 100644
--- a/app/views/projects/calendar.rhtml
+++ b/app/views/projects/calendar.rhtml
@@ -41,11 +41,12 @@ while day <= @date_to
if day.cwday == 1 %>
<%= day==Date.today ? "#{day.day}" : day.day %>
<% day_issues = [] @issues.each { |i| day_issues << i if i.start_date == day or i.due_date == day } - day_issues.each do |i| %> + day_issues.each do |i| %> +