https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292014-07-11T07:53:04ZRedmineRedmine - Defect #17446: Error when editing custom field with blank min_length or max_lengthhttps://www.redmine.org/issues/17446?journal_id=574712014-07-11T07:53:04ZR Sonnenberg
<ul></ul><p>Sorry about messing up the formatting, I missed a closing /pre tag and cannot edit the message myself..</p> Redmine - Defect #17446: Error when editing custom field with blank min_length or max_lengthhttps://www.redmine.org/issues/17446?journal_id=574842014-07-11T21:37:41ZJan Niggemann (redmine.org team member)jan.niggemann@redmine.org
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/57484/diff?detail_id=43021">diff</a>)</li></ul> Redmine - Defect #17446: Error when editing custom field with blank min_length or max_lengthhttps://www.redmine.org/issues/17446?journal_id=574852014-07-11T21:38:25ZJan Niggemann (redmine.org team member)jan.niggemann@redmine.org
<ul></ul><p>R Sonnenberg wrote:</p>
<blockquote>
<p>Sorry about messing up the formatting, I missed a closing /pre tag and cannot edit the message myself..</p>
</blockquote>
<p>Fixed that for you :-)</p> Redmine - Defect #17446: Error when editing custom field with blank min_length or max_lengthhttps://www.redmine.org/issues/17446?journal_id=575252014-07-14T13:19:57ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Needs feedback</i></li></ul><p>This error is fixed in 2.5. You should be able to prevent that by editing your custom fields and making sure that min and max lengths are not blank. Instead, set them to 0.</p> Redmine - Defect #17446: Error when editing custom field with blank min_length or max_lengthhttps://www.redmine.org/issues/17446?journal_id=575302014-07-14T15:16:56ZR Sonnenberg
<ul></ul><p>I just added the min/max values (0) and that fixes the problem! Thanks for the work-around; I guess this issue can be closed now?</p> Redmine - Defect #17446: Error when editing custom field with blank min_length or max_lengthhttps://www.redmine.org/issues/17446?journal_id=575312014-07-14T15:52:54ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Subject</strong> changed from <i>Internal server error 500 when adding/editing time entry with custom field</i> to <i>Error when editing custom field with blank min_length or max_length</i></li><li><strong>Status</strong> changed from <i>Needs feedback</i> to <i>Closed</i></li><li><strong>Assignee</strong> set to <i>Jean-Philippe Lang</i></li><li><strong>Target version</strong> set to <i>2.4.7</i></li><li><strong>Resolution</strong> set to <i>Fixed</i></li></ul><p>Fix is committed in 2.4-stable (<a class="changeset" title="Handle min_length and max_length nil values (#17446)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/13328">r13328</a>), thanks for the feedback!</p>