diff options
author | David Gageot <david@gageot.net> | 2012-07-06 13:51:26 +0200 |
---|---|---|
committer | David Gageot <david@gageot.net> | 2012-07-06 13:51:26 +0200 |
commit | bebe12887aae04f27603e45a40d20873455e20a9 (patch) | |
tree | 0a58a3aef4d5df39ec5fcaa57743a2e2538cf410 /sonar-server/src/main/webapp/WEB-INF/app | |
parent | 234dd7de077a51cd385593fccd77c3f22e356e58 (diff) | |
download | sonarqube-bebe12887aae04f27603e45a40d20873455e20a9.tar.gz sonarqube-bebe12887aae04f27603e45a40d20873455e20a9.zip |
SONAR-3432 Partially migrate rule param types to new names
Diffstat (limited to 'sonar-server/src/main/webapp/WEB-INF/app')
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/helpers/rules_configuration_helper.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/helpers/rules_configuration_helper.rb b/sonar-server/src/main/webapp/WEB-INF/app/helpers/rules_configuration_helper.rb index b3ea8ddf3a5..056026b22c5 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/helpers/rules_configuration_helper.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/helpers/rules_configuration_helper.rb @@ -27,7 +27,8 @@ module RulesConfigurationHelper PARAM_TYPE_BOOLEAN = "b" PARAM_TYPE_REGEXP = "r" - def property_type_for_param_type(type) + # Kept for compatibility with old rule param type + def type_with_compatibility(type) return PropertyType::TYPE_STRING if type == PARAM_TYPE_STRING return PropertyType::TYPE_STRING if type == PARAM_TYPE_STRING_LIST return PropertyType::TYPE_INTEGER if type == PARAM_TYPE_INTEGER @@ -49,7 +50,7 @@ module RulesConfigurationHelper end def param_value_input(parameter, value, options = {}) - property_value 'value', property_type_for_param_type(parameter.param_type), value, {:id => parameter.id}.update(options) + property_value 'value', type_with_compatibility(parameter.param_type), value, {:id => parameter.id}.update(options) end def is_set(type) |