]> source.dussan.org Git - redmine.git/commitdiff
Issue#long_id no more used and removed
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 5 May 2007 15:55:50 +0000 (15:55 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 5 May 2007 15:55:50 +0000 (15:55 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@510 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/issues_controller.rb
app/models/issue.rb
app/views/issues/_pdf.rfpdf
app/views/projects/move_issues.rhtml

index 99dc687f869de9210968f7e0ae19dc03870f00be..9c16d299bb5be8573d3c490a5bf5a789e8f61f0b 100644 (file)
@@ -41,7 +41,7 @@ class IssuesController < ApplicationController
   def export_pdf
     @custom_values = @issue.custom_values.find(:all, :include => :custom_field)
     @options_for_rfpdf ||= {}
-    @options_for_rfpdf[:file_name] = "#{@project.name}_#{@issue.long_id}.pdf"
+    @options_for_rfpdf[:file_name] = "#{@project.name}_#{@issue.id}.pdf"
   end
 
   def edit
index 6dc812ce44bb6f9d2cd5c0bb736cfa64e9f66a14..52aaa0931a89652222c75a29275f4a4d5b1928b5 100644 (file)
@@ -82,10 +82,6 @@ class Issue < ActiveRecord::Base
   
   def after_save
     relations_from.each(&:set_issue_to_dates)
-  end  
-  
-  def long_id
-    "%05d" % self.id
   end
   
   def custom_value_for(custom_field)
index 39dfd90def0d1d15a25869b7180b3e4a3326f1e0..485066894eb014d1c1cf1ee9b3bf952084057aa4 100644 (file)
@@ -1,5 +1,5 @@
 <%     pdf.SetFontStyle('B',11)        \r
-       pdf.Cell(190,10, "#{issue.project.name} - #{issue.tracker.name} # #{issue.long_id} - #{issue.subject}")\r
+       pdf.Cell(190,10, "#{issue.project.name} - #{issue.tracker.name} # #{issue.id}: #{issue.subject}")\r
     pdf.Ln\r
     \r
     y0 = pdf.GetY\r
index 57fc51e49bbe3ad3e62edae8b8f7c120734409d3..fd8edb2085fdbc3abed0d96992302dffa8fb9724 100644 (file)
@@ -6,7 +6,7 @@
 <div class="box">
 <p><label><%= l(:label_issue_plural) %>:</label>
 <% for issue in @issues %>
-    <b><%= link_to issue.long_id, :controller => 'issues', :action => 'show', :id => issue %></b> - <%=h issue.subject %>
+    <%= link_to_issue issue %>: <%=h issue.subject %>
     <%= hidden_field_tag "issue_ids[]", issue.id %><br />
 <% end %>
 <i>(<%= @issues.length%> <%= lwr(:label_issue, @issues.length)%>)</i></p>