https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292011-01-25T11:24:24ZRedmineRedmine - Defect #6590: Wrong file list link in email notification on new file uploadhttps://www.redmine.org/issues/6590?journal_id=244372011-01-25T11:24:24ZVladimir Ch
<ul></ul><p>Same problem!</p>
<p>Redmine version 1.0.4 stable<br />Ruby version 1.8.7 (i386-mingw32)<br />Environment: production<br />Database adapter mysql<br />Database version MySQL 5.0.90</p> Redmine - Defect #6590: Wrong file list link in email notification on new file uploadhttps://www.redmine.org/issues/6590?journal_id=246802011-01-31T03:16:15ZVladimir Ch
<ul><li><strong>File</strong> <a href="/attachments/5258">redmine.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/5258/redmine.png">redmine.png</a> added</li></ul><p>In version 1.1 the error still persists.<br />PS: Windows 2003 Server</p> Redmine - Defect #6590: Wrong file list link in email notification on new file uploadhttps://www.redmine.org/issues/6590?journal_id=254002011-02-21T11:24:14ZSebastian Maj
<ul></ul><p>Is there any chances that this problem will be fixed soon? It's really annoying.</p> Redmine - Defect #6590: Wrong file list link in email notification on new file uploadhttps://www.redmine.org/issues/6590?journal_id=261422011-03-09T11:01:52ZKseniya Shestakova
<ul></ul><p>In app/models/mailer.rb</p>
<pre>
def attachments_added(attachments)
container = attachments.first.container
added_to = ''
added_to_url = ''
case container.class.name
when 'Project'
- added_to_url = url_for(:controller => 'projects', :action => 'list_files', :id => container)
+ added_to_url = url_for(:controller => 'files', :action => 'index', :project_id => container)
added_to = "#{l(:label_project)}: #{container}"
recipients container.project.notified_users.select {|user| user.allowed_to?(:view_files, container.project)}.collect {|u| u.mail}
when 'Version'
- added_to_url = url_for(:controller => 'projects', :action => 'list_files', :id => container)
+ added_to_url = url_for(:controller => 'files', :action => 'index', :project_id => container)
added_to = "#{l(:label_version)}: #{container.name}"
recipients container.project.notified_users.select {|user| user.allowed_to?(:view_files, container.project)}.collect {|u| u.mail}
when 'Document'
added_to_url = url_for(:controller => 'documents', :action => 'show', :id => container.id)
added_to = "#{l(:label_document)}: #{container.title}"
recipients container.recipients
end
redmine_headers 'Project' => container.project.identifier
subject "[#{container.project.name}] #{l(:label_attachment_new)}"
body :attachments => attachments,
:added_to => added_to,
:added_to_url => added_to_url
render_multipart('attachments_added', body)
end
</pre> Redmine - Defect #6590: Wrong file list link in email notification on new file uploadhttps://www.redmine.org/issues/6590?journal_id=265432011-03-17T10:35:40ZKarel Pičman
<ul></ul><p>In case of Version there should be container.project_id</p>
<pre>
when 'Version'
- added_to_url = url_for(:controller => 'projects', :action => 'list_files', :id => container)
+ added_to_url = url_for(:controller => 'files', :action => 'index', :project_id => container.project_id)
added_to = "#{l(:label_version)}: #{container.name}"
recipients container.project.notified_users.select {|user| user.allowed_to?(:view_files, container.project)}.collect {|u| u.mail}
when 'Document'
</pre> Redmine - Defect #6590: Wrong file list link in email notification on new file uploadhttps://www.redmine.org/issues/6590?journal_id=265442011-03-17T11:05:41ZEtienne Massip
<ul><li><strong>Target version</strong> set to <i>Candidate for next minor release</i></li></ul> Redmine - Defect #6590: Wrong file list link in email notification on new file uploadhttps://www.redmine.org/issues/6590?journal_id=265722011-03-18T07:33:44ZKarel Pičman
<ul><li><strong>File</strong> <a href="/attachments/5593">mailer.rb.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/5593/mailer.rb.patch">mailer.rb.patch</a> added</li></ul><p>Here is a patch</p> Redmine - Defect #6590: Wrong file list link in email notification on new file uploadhttps://www.redmine.org/issues/6590?journal_id=271912011-03-27T16:38:54ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Resolved</i></li><li><strong>Target version</strong> changed from <i>Candidate for next minor release</i> to <i>1.1.3</i></li><li><strong>Resolution</strong> set to <i>Fixed</i></li></ul><p>Fixed in <a class="changeset" title="Fixed links in new file notification broken by r4051 (#6590)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/5230">r5230</a>, thanks.</p> Redmine - Defect #6590: Wrong file list link in email notification on new file uploadhttps://www.redmine.org/issues/6590?journal_id=284292011-04-29T07:02:32ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Closed</i></li></ul>