プロジェクト

全般

プロフィール

Vote #73666

完了

PDF export generates the issue id twice

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
PDF export_39
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
39
version_id:
71
issue_org_id:
13630
author_id:
74416
assigned_to_id:
0
comments:
8
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
60
ステータス-->[Closed]

説明

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

Admin Redmine さんが3年以上前に更新

  • カテゴリPDF export_39 にセット
  • 対象バージョン2.3.1_71 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0