Actions
Defect #95
closedMantis importer - field widths
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
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]
Updated by Damien McKenna over 17 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]
Updated by Jean-Philippe Lang about 17 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 :-)
Actions