Skip to content

Commit

Permalink
fixed issues 19 to 26
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin Jędras committed Apr 20, 2010
1 parent 331fbf3 commit 74ea3ac
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
1 change: 0 additions & 1 deletion app/controllers/issue_sprints_controller.rb
Expand Up @@ -94,7 +94,6 @@ def status_change
end
issue.status = issue_status(issue)
issue.user_story_id = params[:user_story_id]
issue.author = User.current
end

if issue.save
Expand Down
4 changes: 2 additions & 2 deletions app/controllers/sprints_controller.rb
Expand Up @@ -27,8 +27,8 @@ def index
# GET /sprints/1.xml
def show
unless @sprint.nil?
@unassigned_tasks = Issue.find(:all,
:conditions => ["user_story_id IS NULL AND (fixed_version_id = ? OR project_id = ?)", @sprint.id, @project.id ])
@unassigned_tasks = Issue.find(:all, :joins => :status,
:conditions => ["issue_statuses.is_closed = 0 AND user_story_id IS NULL AND (fixed_version_id = ? OR project_id = ?)", @sprint.id, @project.id ])
@issue_statuses = IssueStatus.find(:all)
@project_users = User.find(:all, :joins => :members, :conditions => ["members.project_id = ?", @project.id])

Expand Down
4 changes: 3 additions & 1 deletion app/views/shared/_task_view.html.erb
Expand Up @@ -3,7 +3,9 @@
<div class="<%= "the_task_#{task.status_id}" %>" >
<table>
<tr>
<td class="task_center" colspan="2"><%= task.subject %></td>
<td class="task_center" colspan="2">
<%= link_to task.subject, :controller => "issues", :action => "show", :id => task.id %>
</td>
</tr>
<tr>
<td colspan="2">
Expand Down
1 change: 1 addition & 0 deletions config/locales/en.yml
Expand Up @@ -48,3 +48,4 @@ en:
unassigned_issues: Unassigned issues
error_changing_status: Error while changing status. You may not have persmissions.
error_while_adding_sprint: Error while adding Sprint. Field Date is required.
field_user_story: Field User Story
3 changes: 2 additions & 1 deletion config/locales/pl.yml
Expand Up @@ -46,4 +46,5 @@ pl:
new_diagram: Nowy diagram
unassigned_issues: Nieprzypisane zadania
error_changing_status: Błąd podczas zmiany statusu. Możesz nie mieć prawa do tej zmiany.
error_while_adding_sprint: Błąd podczas dodawania Sprintu. Pole data jest wymagane.
error_while_adding_sprint: Błąd podczas dodawania Sprintu. Pole data jest wymagane.
field_user_story: Pole Historia Użytkownika

0 comments on commit 74ea3ac

Please sign in to comment.