Skip to content

Commit 0d16899

Browse files
authored
Merge pull request #745 from Joerit/devel
fix unneccesary checking of duplicate repositories
2 parents eaa6e5f + ce18c51 commit 0d16899

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/forms/plugin_settings_validation/redmine_config.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ module RedmineConfig
4646
# Check duplication if we are switching from a mode to another
4747
#
4848
def check_for_duplicated_repo
49-
return if !Additionals.true?(current_setting(:hierarchical_organisation)) && Additionals.true?(hierarchical_organisation)
49+
return if Additionals.true?(hierarchical_organisation)
5050
return unless Repository::Xitolite.have_duplicated_identifier?
5151

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

0 commit comments

Comments
 (0)