From b565b6ba4d71f19a29a8ec164e64da199569f68e Mon Sep 17 00:00:00 2001 From: Arthur Vieira Date: Fri, 3 Jun 2022 19:00:57 -0300 Subject: [PATCH] Add whatsapp_phone to permitted attributes Allows creating and updating the enterprise's WhatsApp phone number in the registration form and contact edit views. --- app/services/permitted_attributes/enterprise.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/permitted_attributes/enterprise.rb b/app/services/permitted_attributes/enterprise.rb index 2c7346eaf7..f651edf77a 100644 --- a/app/services/permitted_attributes/enterprise.rb +++ b/app/services/permitted_attributes/enterprise.rb @@ -24,7 +24,7 @@ module PermittedAttributes def self.basic_permitted_attributes [ - :id, :name, :visible, :permalink, :owner_id, :contact_name, :email_address, :phone, + :id, :name, :visible, :permalink, :owner_id, :contact_name, :email_address, :phone, :whatsapp_phone, :is_primary_producer, :sells, :website, :facebook, :instagram, :linkedin, :twitter, :description, :long_description, :logo, :promo_image, :terms_and_conditions, :allow_guest_orders, :allow_order_changes, :require_login, :enable_subscriptions,