aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeb Bacon <seb.bacon@gmail.com>2012-05-22 11:11:22 +0100
committerSeb Bacon <seb.bacon@gmail.com>2012-05-22 11:11:22 +0100
commitb58f2d6b2847f5d438468bfdd317308f60d32be3 (patch)
treee11cb1c5970b496dd7a11e6870e6b60d0640a174
parent308707f1512fc43c570023ee786463d37e43f1fb (diff)
parent062115762f07826dfebba37af4a4b6d6651034af (diff)
Merge branch 'hotfix/0.5.2'0.5.2
-rw-r--r--app/models/public_body.rb2
-rw-r--r--doc/CHANGES.md4
2 files changed, 5 insertions, 1 deletions
diff --git a/app/models/public_body.rb b/app/models/public_body.rb
index 961fa3cbb..90e9395ae 100644
--- a/app/models/public_body.rb
+++ b/app/models/public_body.rb
@@ -240,7 +240,7 @@ class PublicBody < ActiveRecord::Base
# Return the short name if present, or else long name
def short_or_long_name
if self.short_name.nil? || self.short_name.empty? # 'nil' can happen during construction
- self.name
+ self.name.nil? ? "" : self.name
else
self.short_name
end
diff --git a/doc/CHANGES.md b/doc/CHANGES.md
index 025d72c8d..efe3d4d71 100644
--- a/doc/CHANGES.md
+++ b/doc/CHANGES.md
@@ -1,3 +1,7 @@
+# Version 0.5.2
+
+This is a hotfix to fix occasional problems importing public body CSVs
+
# Version 0.5.1
## Highlighted features