https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292007-08-20T15:24:00ZRedmineRedmine - Defect #95: Mantis importer - field widthshttps://www.redmine.org/issues/95?journal_id=2622007-08-20T15:24:00ZDamien McKenna
<ul></ul><p>Is there a way to do this using ActiveRecord calls instead of<br />hardcoding it? E.g.<br />(pseudocode)<br />category.category[1, IssueCategory._fields[:name]._width]</p> Redmine - Defect #95: Mantis importer - field widthshttps://www.redmine.org/issues/95?journal_id=2612007-08-25T09:01:00ZJean-Philippe Langjp_lang@yahoo.fr
<ul></ul><p>Hi Damien,</p>
<p>I committed your fix (rev 659).</p>
<blockquote>
<p>Is there a way to do this using ActiveRecord calls instead</p>
</blockquote>
<p>of hardcoding it?</p>
<p>This code seems to work:<br />IssueCategory.columns_hash['name'].limit<br />It would be much cleaner to use it :-)</p>