Vote #73666
完了PDF export generates the issue id twice
0%
説明
The pdf export generates the issue id twice:
!double_issueID.png!
I added a patch that fixes this bug.
journals
Regression.
Not sure the patch is complete?
--------------------------------------------------------------------------------
This patch should be complete now. It also includes some code improvements: <code>.inject(0) {|s,v| s += v}</code> is replaced by <code>.inject(:+)</code>
--------------------------------------------------------------------------------
F Schroedter wrote:
> This patch should be complete now. It also includes some code improvements: <code>.inject(0) {|s,v| s += v}</code> is replaced by <code>.inject(:+)</code>
Looks fine. What Ruby version did you test it with, please?
--------------------------------------------------------------------------------
Tested on ruby 1.9.2 and 1.9.3. The code improvement should also work on 1.8.7: http://stackoverflow.com/questions/1538789/how-to-sum-array-members-in-ruby
--------------------------------------------------------------------------------
Looks like @.inject(0) {|s,w| s += w}@ should be replaced by @.inject(0, :+)@ rather than @.inject(:+)@?
--------------------------------------------------------------------------------
You are right.
--------------------------------------------------------------------------------
Fixed with r11693.
--------------------------------------------------------------------------------
Merged from trunk.
--------------------------------------------------------------------------------
related_issues
relates,Closed,13689,Duplicate column Id em Issues
precedes,Closed,14178,PDF API broken in version 2.3.1