diff options
author | James Lopez <james@jameslopez.es> | 2016-12-21 19:41:33 +0300 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2017-01-03 15:01:46 +0300 |
commit | 112f47057275312daa876bee5bd74d5464410bc5 (patch) | |
tree | 257495d658a39b8e31c3407498ec248cb97976a6 /app/models/project_label.rb | |
parent | de25604fbca2f7005754d821d571bbcb1cc510ac (diff) |
Fix cross-project references copy to include the project reference
Also added relevant specs and refactored to_references in a bunch of places to be more consistent.
Diffstat (limited to 'app/models/project_label.rb')
-rw-r--r-- | app/models/project_label.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/project_label.rb b/app/models/project_label.rb index 82f47f0e8fd..313815e5869 100644 --- a/app/models/project_label.rb +++ b/app/models/project_label.rb @@ -16,8 +16,8 @@ class ProjectLabel < Label 'project_id' end - def to_reference(target_project = nil, format: :id) - super(project, target_project, format: format) + def to_reference(target_project = nil, format: :id, full: false) + super(project, target_project: target_project, format: format, full: full) end private |