diff options
| author | Timothy Andrew <mail@timothyandrew.net> | 2016-10-25 11:03:49 +0530 |
|---|---|---|
| committer | Timothy Andrew <mail@timothyandrew.net> | 2016-10-25 11:03:49 +0530 |
| commit | fed3f718d8e2223305fb1c0ab4e72d514f50a8f6 (patch) | |
| tree | 3a0dfb5acb0d34c0ddb53ecb3fd96b076e4ac479 /app/models/user.rb | |
| parent | 132e3f547194de1923db258d4022b7f473f176e0 (diff) | |
| download | gitlab-ce-fed3f718d8e2223305fb1c0ab4e72d514f50a8f6.tar.gz | |
Fix `User#to_reference`23662-issue-move-user-reference-exception
1. Changes in 8.13 require `Referable`s that don't have a project
reference to accept two arguments - `from_project` and
`target_project`.
2. `User#to_reference` was not changed to accept the
`target_project` (even though it is not used). Moving an issue
containing a user reference would throw a "invalid number of
arguments" exception.
Fixes #23662
Diffstat (limited to 'app/models/user.rb')
| -rw-r--r-- | app/models/user.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index f367f4616fb..9181db40eb4 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -309,7 +309,7 @@ class User < ActiveRecord::Base username end - def to_reference(_from_project = nil) + def to_reference(_from_project = nil, _target_project = nil) "#{self.class.reference_prefix}#{username}" end |
