diff --git a/vendor/built_in_modules/survey/app/models/survey.rb b/vendor/built_in_modules/survey/app/models/survey.rb index 57fa3998e..98f793e65 100644 --- a/vendor/built_in_modules/survey/app/models/survey.rb +++ b/vendor/built_in_modules/survey/app/models/survey.rb @@ -58,7 +58,7 @@ class Survey end def write - if self.deadline || Time.now < self.deadline + if self.deadline && Time.now < self.deadline ('').html_safe else ''