Skip to content

Business intelligence made simple

Added fix for Quip bug

Andrew0ac24e261b85
diff --git a/app/controllers/blazer/base_controller.rb b/app/controllers/blazer/base_controller.rb
index 2ec37753..1bf205a5 100644
--- a/app/controllers/blazer/base_controller.rb
+++ b/app/controllers/blazer/base_controller.rb
@@ -30,6 +30,7 @@ module Blazer
if var.end_with?("_at")
value = Blazer.time_zone.parse(value) rescue nil
end
+ value.gsub!(" ", "+") if ["start_time", "end_time"].include?(var) # fix for Quip bug
statement.gsub!("{#{var}}", ActiveRecord::Base.connection.quote(value))
end
end