From: David Gageot Date: Mon, 1 Oct 2012 08:13:39 +0000 (+0200) Subject: SONAR-3529 Fixe edition of boolean property X-Git-Tag: 3.3~161 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=08a2dfae36a5f246907e6c37732bb75e7c3ec683;p=sonarqube.git SONAR-3529 Fixe edition of boolean property --- diff --git a/sonar-server/src/main/webapp/WEB-INF/app/models/property.rb b/sonar-server/src/main/webapp/WEB-INF/app/models/property.rb index 442a715db70..ec98d312c9a 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/models/property.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/models/property.rb @@ -93,8 +93,8 @@ class Property < ActiveRecord::Base value = value.first end - value = value.to_s if value - text_value = (value.blank? ? nil : value) + text_value = value.to_s if defined? value + text_value = nil if text_value.blank? prop = by_key(key, resource_id, user_id) if prop