repository_identifier_param.patch

always return a repository identifier - Jens Krämer, 2017-07-25 11:42

Download (381 Bytes)

View differences:

app/models/repository.rb
129 129
  end
130 130

  
131 131
  def identifier_param
132
    if is_default?
133
      nil
134
    elsif identifier.present?
132
    if identifier.present?
135 133
      identifier
136 134
    else
137 135
      id.to_s