Display master backlog even when there are no stories yet

pull/6827/head
Mark Maglana 14 years ago
parent 9828ac8eb2
commit a7c3561047
  1. 4
      app/controllers/backlogs_controller.rb
  2. 2
      app/helpers/stories_helper.rb

@ -22,10 +22,6 @@ class BacklogsController < ApplicationController
:conditions => ["project_id=? AND tracker_id in (?)", @project, Story.trackers],
:order => "updated_on DESC")
if @last_updated.nil?
raise "This project doesn't have a story. You should configure the story tracker and add an issue to that tracker for this project."
end
if @settings[:story_trackers].nil? || @settings[:task_tracker].nil?
render :action => "noconfig", :layout => "backlogs"
else

@ -54,7 +54,7 @@ module StoriesHelper
end
def updated_on_with_milliseconds(story)
date_string_with_milliseconds(story.updated_on, 0.001);
date_string_with_milliseconds(story.updated_on, 0.001) unless story.nil?
end
def date_string_with_milliseconds(d, add=0)

Loading…
Cancel
Save