build lists create api: fix error with include repos values
This commit is contained in:
parent
fa39de82d9
commit
2e95334ded
|
@ -80,7 +80,7 @@ class BuildList < ActiveRecord::Base
|
|||
errors.add(:save_to_repository, I18n.t('flash.build_list.wrong_project'))
|
||||
end
|
||||
}
|
||||
before_validation -> { self.include_repos = include_repos.uniq if include_repos.present? }, on: :create
|
||||
before_validation -> { self.include_repos = ([] << include_repos).flatten.uniq if include_repos.present? }, on: :create
|
||||
before_validation :prepare_extra_repositories, on: :create
|
||||
before_validation :prepare_extra_build_lists, on: :create
|
||||
before_validation :prepare_extra_params, on: :create
|
||||
|
|
Loading…
Reference in New Issue