From e9a40774ac434c219dce2caccba808890706b4f0 Mon Sep 17 00:00:00 2001 From: Manson Wang Date: Thu, 12 Dec 2013 17:59:56 +0800 Subject: [PATCH] Add phone numbers to mobile front_end --- app/controllers/admin/sites_controller.rb | 3 +++ app/views/mobile/dialog_contact.mobile.erb | 11 +++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/app/controllers/admin/sites_controller.rb b/app/controllers/admin/sites_controller.rb index 1883533b..3adc9e02 100644 --- a/app/controllers/admin/sites_controller.rb +++ b/app/controllers/admin/sites_controller.rb @@ -84,6 +84,9 @@ class Admin::SitesController < OrbitBackendController def responsive_setting @module = ModuleApp.where(:key => "announcement").first + if @site.phone_number.class.to_s == "BSON::OrderedHash" + @site.phone_number = [] + end end diff --git a/app/views/mobile/dialog_contact.mobile.erb b/app/views/mobile/dialog_contact.mobile.erb index 5e2936ad..c4cfb9ad 100644 --- a/app/views/mobile/dialog_contact.mobile.erb +++ b/app/views/mobile/dialog_contact.mobile.erb @@ -4,9 +4,12 @@