Extended Fields - Bug #2359
Extended fields plugin breaks PDF export
29 1月 2015 07:50 - Sergey B

ステータス:In Progress

開始日:

優先度:

Normal

期日:担当者:

Andriy Lesyuk

進捗率:

90%

予定工数:

0.00時間カテゴリ:
対象バージョン:29 1月 2015

0.2.4

Redmine version:

External issue:

説明PDF export of issue list doesnt work after installation of extended fields plugin.

Environment info
Environment:
Redmine version
Ruby version
Rails version
Environment
Database adapter
SCM:
Subversion
Git
Filesystem
Redmine plugins:
extended̲fields
redmine̲all̲files
redmine̲codebutton
redmine̲screenshot̲paste
redmine̲tags
sidebar̲hide

2.5.1.stable
1.9.3-p231 (2012-05-25)
3.2.17production
Mysql2[i386-mingw32]

1.8.8
1.9.0

0.2.3
0.0.3
0.0.1
2.1.0
2.1.0
0.0.7

Logs
NoMethodError (undefined method ̀find̲custom̲field̲template' for #<IssuesController:0x3704490>):
lib/redmine/export/pdf.rb:302:in ̀block in calc̲col̲width'
app/helpers/issues̲helper.rb:29:in ̀block in issue̲list'
app/helpers/issues̲helper.rb:25:in ̀each'
app/helpers/issues̲helper.rb:25:in ̀issue̲list'
lib/redmine/export/pdf.rb:300:in ̀calc̲col̲width'lib/redmine/export/pdf.rb:428:in ̀issues̲to̲pdf'
app/controllers/issues̲controller.rb:93:in ̀block (2 levels) in index'
app/controllers/issues̲controller.rb:86:in ̀index'
関連するチケット:
関連している Extended Fields - Bug #2261: issues PDF view and d...

Incomplete

04 11月 2013

関連している Extended Fields - Bug #2098: Failure in XLS Export...

In Progress

07 9月 2012

関連している Extended Fields - Bug #1936: Undefined method ̀fin...

Closed06 1月 2012

次のチケットと重複 Extended Fields - Bug #2318: Issues as pdf

In Progress

25 6月 201401 2月 2012

関係しているリビジョン
リビジョン 124 - 03 10月 2016 16:23 - Andriy Lesyuk
Explicitly include ExtendedFieldsHelper (#2318, #2359, #2098)

14 10月 2024

1/5

履歴
#1 - 16 2月 2015 13:02 - Sergey B
Any ideas how to fix it?

#2 - 23 3月 2015 08:29 - Jacek Pasternak
You can find quick-fix here: http://projects.andriylesyuk.com/issues/2098#note-22 and here
http://projects.andriylesyuk.com/issues/2098#note-24#3 - 24 3月 2015 08:28 - Sergey B
Jacek Pasternak wrote:You can find quick-fix here: http://projects.andriylesyuk.com/issues/2098#note-22 and here
http://projects.andriylesyuk.com/issues/2098#note-24

After applying this fix PDF export fails with Undefined method 'link̲to.

#4 - 24 3月 2015 10:06 - Jacek Pasternak- ファイル extended̲fields.zip を追加

Ive tested it on Redmine 2.5.3. Maybe the next problem is with Redmine 2.5.1. Try attached version.

#5 - 24 3月 2015 17:05 - Sergey B
The difference was in extended̲issues̲controller̲patch.rb and extended̲fields̲helper̲patch.rb. After I copied your version, I got the following:
NoMethodError (undefined method ̀link̲to' for #<IssuesController:0x36618a8>):
lib/redmine/field̲format.rb:157:in ̀block in formatted̲value'
lib/redmine/field̲format.rb:157:in ̀map'
lib/redmine/field̲format.rb:157:in ̀formatted̲value'
lib/redmine/field̲format.rb:146:in ̀formatted̲custom̲value'
app/helpers/application̲helper.rb:187:in ̀format̲object'lib/redmine/export/pdf.rb:302:in ̀block in calc̲col̲width'
app/helpers/issues̲helper.rb:29:in ̀block in issue̲list'
app/helpers/issues̲helper.rb:25:in ̀each'
app/helpers/issues̲helper.rb:25:in ̀issue̲list'
lib/redmine/export/pdf.rb:300:in ̀calc̲col̲width'lib/redmine/export/pdf.rb:428:in ̀issues̲to̲pdf'
app/controllers/issues̲controller.rb:93:in ̀block (2 levels) in index'
app/controllers/issues̲controller.rb:86:in ̀index'

I suppose, in 2.5.3 there must be a method link̲to in IssuesController which is absent in 2.5.1.

14 10月 2024

2/5

#6 - 30 3月 2015 08:47 - Jacek Pasternak
It s defined in [Redmine root]\lib\redmine\views\other̲formats̲builder.rb (in 2.5.3 of course). If you donupgrade.

t have it, maybe its time to#7 - 01 10月 2015 12:10 - Andriy Lesyuk- ステータス を New から Open に変更- 担当者 を Andriy Lesyuk にセット
- 対象バージョン を 0.2.4 にセット

#8 - 03 10月 2016 10:20 - Andriy Lesyuk- 次のチケットと重複 Bug #2318: Issues as pdf を追加#9 - 03 10月 2016 10:20 - Andriy Lesyuk- 関連している Bug #2261: issues PDF view and descriptions を追加#10 - 03 10月 2016 10:21 - Andriy Lesyuk- 関連している Bug #2098: Failure in XLS Export (undefined method ̀find̲custom̲field̲template' for #<XlsExportController) を追加#11 - 03 10月 2016 10:22 - Andriy Lesyuk- 関連している Bug #1936: Undefined method ̀find̲custom̲field̲template' を追加#12 - 03 10月 2016 16:11 - Andriy Lesyuk
Sergey, your patched version contains Polish locale. I wonder, if you would let me to include it into the repository? Is the translation complete andfine to be published?

#13 - 03 10月 2016 17:02 - Andriy Lesyuk- ステータス を Open から In Progress に変更- 進捗率 を 0 から 90 に変更

I think this issue (and similar) should be fixed with r124. Please check and let me know.

#14 - 03 10月 2016 19:11 - Sergey B
Andrey, the patch is not mine. Its attached by Jacek Pasternak.

#15 - 03 10月 2016 19:43 - Andriy Lesyuk
Sergey, oh. Right. Jacek, so what about the Polish locale?

#16 - 04 10月 2016 06:47 - Jacek Pasternak
Andriy Lesyuk wrote:
Sergey, oh. Right. Jacek, so what about the Polish locale?

I m using this translations in production environment and Polish is my native language, so ... they are ready to publish (plase do this). Iton English translatioins (I don t knon Russian), but should be ok.
Btw. is there any chance to make Extedted Fileds plugin working in Redmine 3.0.x? It

14 10月 2024

s causing bugs in issues list.

3/5

s based

#17 - 04 10月 2016 07:02 - Andriy Lesyuk
Jacek Pasternak wrote:
Btw. is there any chance to make Extedted Fileds plugin working in Redmine 3.0.x? It

Working on this right now. It
the moment though...

s causing bugs in issues list.

s quite possible, that the latest version in the repository already works fine under Redmine 3.0. Cant guarantee for

You can share bugs in the issue list in #2365.
And, thanks for the Polish translation - will use it.

#18 - 04 10月 2016 08:42 - Jacek Pasternak- ファイル fix.patch を追加

Andriy Lesyuk wrote:
Jacek Pasternak wrote:
Working on this right now. It s quite possible, that the latest version in the repository already works fine under Redmine 3.0. Can
guarantee for the moment though...

It s not fixed yet. I m attching my patch to several bugs found in 0.2.3. Some are fixed in nerwest release and some not. It
my patched version which is attached to this issue. Hope it will be useful.

ts mostly based on#19 - 04 10月 2016 08:56 - Andriy Lesyuk
Jacek Pasternak wrote:
It s not fixed yet. I m attching my patch to several bugs found in 0.2.3. Some are fixed in nerwest release and some not. It
on my patched version which is attached to this issue. Hope it will be useful.

s mostly based

Are you saying, that you are still getting undefined method ̀find̲custom̲field̲template'? Or now there are errors related to nil?

14 10月 2024

4/5

#20 - 04 10月 2016 09:23 - Jacek Pasternak
Andriy Lesyuk wrote:
Are you saying, that you are still getting undefined method ̀find̲custom̲field̲template'? Or now there are errors related to nil?

No. Just this patch worked for me. Maybe some issues was handled in different way and parts of this patch are not necessary now. I
current version just against double # column bug. Waiting for fixing this to make other testing.

ve tested

ファイル
extended̲fields.zip

52.9 KB

24 3月 2015Jacek Pasternak

fix.patch

2.38 KB

04 10月 2016

Jacek Pasternak

14 10月 2024

5/5