Patch #14438

Different identifier between repository and redmine project

Added by Tiffany C about 7 years ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:SCM extra
Target version:-

Description

Right now, to use Redmine.pm, both repository and Redmine project identifier must be same.
However, there is a case that both identifier/name are different.
To make it work, attached file is the changes I made to Redmine.pm on Redmine2.3.1.

Simply, I added a RedmineProjectId field to define the redmine project id.
If this field is written in configuration file, use it for $project_id.

...
     RedmineDSN "DBI:mysql:database=databasename;host=my.db.server" 
     RedmineDbUser "redmine" 
     RedmineDbPass "password" 
     RedmineProjectId "redmine_project_id" 
...

Since I'm not a perl programmer, I don't know how to write a nice code...

If this kind of specification could be added to trunk, it would be helpful.
Thanks.

redmine_project_id.diff Magnifier (1.21 KB) Tiffany C, 2013-07-12 07:10

Also available in: Atom PDF