Project

General

Profile

Actions

Defect #95

closed

Mantis importer - field widths

Added by Damien McKenna over 16 years ago. Updated over 16 years ago.

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]

Actions #1

Updated by Damien McKenna over 16 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]

Actions #2

Updated by Jean-Philippe Lang over 16 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

Also available in: Atom PDF