https://www.redmine.org/
https://www.redmine.org/favicon.ico?1679302129
2007-04-10T22:10:00Z
Redmine
Redmine - Defect #27: project summary(/projects/show/*) returns error when running as CGI
https://www.redmine.org/issues/27?journal_id=65
2007-04-10T22:10:00Z
Satoru KURASHIKI
<ul></ul><p>I think this modification make the thing well, though I<br />could't identify why webrick/mongrel treats this correctly...</p>
<p>Index: app/views/projects/show.rhtml
=================================================================
==<br />--- app/views/projects/show.rhtml (revision 439)<br />+++ app/views/projects/show.rhtml (working copy)<br /><code>@ -29,7 +29,7 </code>@<br /> <li><%= link_to tracker.name, :controller =><br />'projects', :action => 'list_issues', :id => <a class="user active" href="https://www.redmine.org/users/11497">Herve Harster</a>,<br /> :set_filter<br />=> 1,</p>
<p>"tracker_id" => tracker.id <span>>:<br />- <</span>= @open_issues_by_tracker[tracker] || 0 <span>> <</span>=<br />lwr(:label_open_issues, @open_issues_by_tracker[tracker] ||<br />0) <span>><br />+ <</span>= @open_issues_by_tracker[tracker] || 0 <span>> <</span>=<br />lwr(:label_open_issues) <span>><br /> <</span>= l(:label_on) <span>> <</span>=<br />@total_issues_by_tracker[tracker] || 0 <span>></li><br /> <</span> end %><br /> </ul></p>
<p>Second tag calls 'lwr' gloc method with argument<br />'@open_issues_by_tracker'. <br />But translation messages of ':label_open_issues' have no<br />variables(%d) in each lang.yml.</p>
<p>--<br />Additionary, this way may be imaginable.</p>
<p>show.rhtml:</p>
<pre><code><%= lwr(:label_open_issues,<br />@open_issues_by_tracker[tracker] || 0) <span>><br /> <</span>= lwr(:label_on, @total_issues_by_tracker[tracker] ||<br />0) %></code></pre>
<p>lang.yml:</p>
<pre><code>label_open_issues: %d open<br /> label_open_issues_plural %d open<br /> label_on: on %d<br />+ label_on_plural: on %d</code></pre>
Redmine - Defect #27: project summary(/projects/show/*) returns error when running as CGI
https://www.redmine.org/issues/27?journal_id=64
2008-01-09T04:05:00Z
Satoru KURASHIKI
<ul></ul><p>Though I couldn't trace down the reason after all,<br />I get good result in this trouble with <a class="changeset" title="Merged r1015, r1019, r1022 to r1025, r1045 and r1047 from trunk." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/1048">r1048</a>.</p>
<p>I'll turn down this old issue.<br />--<br />OS: FreeBSD 6.1-RELEASE-p19<br />Ruby: self compiled 1.8.6(p111)<br />Gem: 1.0.1<br />Rails: 2.0.2<br />DB: MySQL</p>
<p>I run 'rails test', and replace Redmine's config/boot.rb<br />with generated one.</p>