We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents eaa6e5f + ce18c51 commit 0d16899Copy full SHA for 0d16899
app/forms/plugin_settings_validation/redmine_config.rb
@@ -46,7 +46,7 @@ module RedmineConfig
46
# Check duplication if we are switching from a mode to another
47
#
48
def check_for_duplicated_repo
49
- return if !Additionals.true?(current_setting(:hierarchical_organisation)) && Additionals.true?(hierarchical_organisation)
+ return if Additionals.true?(hierarchical_organisation)
50
return unless Repository::Xitolite.have_duplicated_identifier?
51
52
errors.add(:base, 'Detected non-unique repository identifiers. Cannot switch to flat mode')
0 commit comments