From 02988fcf5cafd376bd8775a121bda6215e29592a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Gaya?= <sebastien.gaya@gmail.com> Date: Mon, 24 Oct 2022 18:13:32 +0200 Subject: [PATCH] fix --- app/models/communication/extranet/with_legal.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/models/communication/extranet/with_legal.rb b/app/models/communication/extranet/with_legal.rb index a4420cd47..92fd5fe91 100644 --- a/app/models/communication/extranet/with_legal.rb +++ b/app/models/communication/extranet/with_legal.rb @@ -6,14 +6,14 @@ module Communication::Extranet::WithLegal end def has_terms? - strip_tags(terms).strip.present? + strip_tags(terms).to_s.strip.present? end def has_cookies_policy? - strip_tags(cookies_policy).strip.present? + strip_tags(cookies_policy).to_s.strip.present? end def has_privacy_policy? - strip_tags(privacy_policy).strip.present? + strip_tags(privacy_policy).to_s.strip.present? end end -- GitLab