Project

General

Profile

Actions

Defect #1626

closed

2 characters identifier too short?

Added by Leandro Lucarella over 16 years ago. Updated over 15 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Projects
Target version:
Start date:
2008-07-11
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

I have a project which name consist in 2 characters. I want to identify it with 2 characters too but Redmine fails creating it complaining about the identifier being too short (which is specified in the form). I can't understand why a project identifier can't be 2 (or even 1!) character long.

It's possible to change that validation?

Thanks!


Files

redmine.identifier.patch (1.28 KB) redmine.identifier.patch Trivial patch Leandro Lucarella, 2008-07-11 23:09
redmine.identifier.patch (1.25 KB) redmine.identifier.patch Trivial patch (updated) Leandro Lucarella, 2008-07-11 23:11

Related issues

Related to Redmine - Defect #3073: Minimum identifier lenght should be 1Closed2009-03-30

Actions
Actions #1

Updated by Leandro Lucarella over 16 years ago

I've attached a trivial patch against 0.7 svn branch that do the trick.

Actions #2

Updated by Leandro Lucarella over 16 years ago

Ups! Broken patch attached, here is the correct one...

Actions #3

Updated by Thomas Lecavelier over 16 years ago

you should introduce a test case about that patch.

Actions #4

Updated by Leandro Lucarella over 16 years ago

I'm sorry, I'm not a RoRer nor a Rubyier, I managed to make the patch because it was trivial, but I have no idea of how to make a testecase for redmine.

I'll appreciate instructions or that somebody else do it.

Thank you

Actions #5

Updated by Jean-Philippe Lang almost 16 years ago

  • Status changed from New to Closed
  • Target version set to 0.8.1
  • Resolution set to Fixed

r2221 lowers this limit to 2.

Actions #6

Updated by Leandro Lucarella almost 16 years ago

Thanks!

May I ask why not to have a limit of 1?

Actions #7

Updated by Leandro Lucarella over 15 years ago

  • Status changed from Closed to Reopened

I'm reopening the bug because I don't see any reason to set the limit to 2 instead of 1 (i.e. non-empty).

Actions #8

Updated by Anonymous over 15 years ago

Please don't re-open bugs of a closed milestone. What you've done is mark the 0.8.1 milestone as 'open' again when it was closed again. I'd suggest opening a new ticket and reference this one from the new one.

Actions #9

Updated by Leandro Lucarella over 15 years ago

Ok, I'm sorry, I just opened a new bug report (#3073). Unfortunately I can't re-close this one myself.

Actions #10

Updated by Mischa The Evil over 15 years ago

  • Status changed from Reopened to Closed

As requested...

Actions

Also available in: Atom PDF