From ec173c4ce100d38a15818a4915fbe2853b0e848f Mon Sep 17 00:00:00 2001 From: iCross Date: Sat, 25 May 2013 10:19:58 +0800 Subject: [PATCH] fix --- vendor/built_in_modules/survey/app/models/survey.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vendor/built_in_modules/survey/app/models/survey.rb b/vendor/built_in_modules/survey/app/models/survey.rb index 98f793e6..0ca9c6c7 100644 --- a/vendor/built_in_modules/survey/app/models/survey.rb +++ b/vendor/built_in_modules/survey/app/models/survey.rb @@ -51,15 +51,15 @@ class Survey if ( self.result_type == Survey::ResultChart && self.deadline && Time.now > self.deadline ) || ( self.result_type == Survey::ResultExtern && !self.extern_link.blank? ) || ( self.result_type == Survey::ResultFile && self.upload_file? ) - ('').html_safe + ('').html_safe else '' end end def write - if self.deadline && Time.now < self.deadline - ('').html_safe + unless self.deadline && Time.now > self.deadline + ('').html_safe else '' end