From 08a2dfae36a5f246907e6c37732bb75e7c3ec683 Mon Sep 17 00:00:00 2001 From: David Gageot Date: Mon, 1 Oct 2012 10:13:39 +0200 Subject: [PATCH] SONAR-3529 Fixe edition of boolean property --- sonar-server/src/main/webapp/WEB-INF/app/models/property.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5