Project

General

Profile

Actions

Defect #9221

closed

enabled related project changeset reference

Added by Takashi Okamoto about 13 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
SCM
Target version:
-
Start date:
2011-09-10
Due date:
% Done:

0%

Estimated time:
Resolution:
Duplicate
Affected version:

Description

Hi,

I would like to update ticket by commit for related project(parent or child).

While check changesets.rb, I aware such code exists:

  def find_referenced_issue_by_id(id)
    return nil if id.blank?
    issue = Issue.find_by_id(id.to_i, :include => :project)
    if issue
      unless issue.project &&
                (project == issue.project || project.is_ancestor_of?(issue.project) ||
                 project.is_descendant_of?(issue.project))
        issue = nil
      end
    end
    issue
  end

However ":include => project" condition seems to prevent following code.

Why don't you permit referencing changesets for related project's scm?

regards,

Takashi Okamoto


Related issues

Is duplicate of Redmine - Defect #9220: enabled related project changeset reference Closed2011-09-10

Actions
Actions #1

Updated by Toshi MARUYAMA about 13 years ago

  • Status changed from New to Closed
  • Resolution set to Duplicate
Actions #2

Updated by Toshi MARUYAMA about 13 years ago

  • Category set to SCM
Actions

Also available in: Atom PDF