Defect #95

Mantis importer - field widths

Added by Damien McKenna almost 12 years ago. Updated almost 12 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-
Resolution: Affected version:

Description

Mantis allowed for longer widths than RedMine for some text fields, e.g. issue category title.

To fix issue categories I changed line 291 to have this at the end: category.category[0, 30]

History

#1 Updated by Jean-Philippe Lang almost 12 years ago

Hi Damien,

I committed your fix (rev 659).

Is there a way to do this using ActiveRecord calls instead

of hardcoding it?

This code seems to work:
IssueCategory.columns_hash['name'].limit
It would be much cleaner to use it :-)

#2 Updated by Damien McKenna almost 12 years ago

Is there a way to do this using ActiveRecord calls instead of
hardcoding it? E.g.
(pseudocode)
category.category[1, IssueCategory._fields[:name]._width]

Also available in: Atom PDF