Skip to content

Commit

Permalink
checking for duplicates is unneccesary when you're already hierarchic…
Browse files Browse the repository at this point in the history
…a, or moving towards hierarchical
  • Loading branch information
ratty committed Jan 24, 2020
1 parent e5d9a68 commit ce18c51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/forms/plugin_settings_validation/redmine_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ module RedmineConfig
# Check duplication if we are switching from a mode to another
#
def check_for_duplicated_repo
return if !Additionals.true?(current_setting(:hierarchical_organisation)) && Additionals.true?(hierarchical_organisation)
return if Additionals.true?(hierarchical_organisation)
return unless Repository::Xitolite.have_duplicated_identifier?

errors.add(:base, 'Detected non-unique repository identifiers. Cannot switch to flat mode')
Expand Down

0 comments on commit ce18c51

Please sign in to comment.