Skip to content

Commit

Permalink
Merge pull request #745 from Joerit/devel
Browse files Browse the repository at this point in the history
fix unneccesary checking of duplicate repositories
  • Loading branch information
PowerKiKi authored Feb 14, 2020
2 parents eaa6e5f + ce18c51 commit 0d16899
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 0d16899

Please sign in to comment.