From 4263b70981f3e7227cc953496ce8a85643e48854 Mon Sep 17 00:00:00 2001 From: James Finstrom Date: Mon, 21 Mar 2016 13:53:16 -0700 Subject: [PATCH] FREEPBX-11857 Add info field type --- Superfecta.class.php | 5 +++-- sources/source-GooglePlaces.module | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Superfecta.class.php b/Superfecta.class.php index c66c01a7..6b746e7a 100644 --- a/Superfecta.class.php +++ b/Superfecta.class.php @@ -204,7 +204,6 @@ public function execute($scheme='ALL', $request, $debug=0, $keepGoing=false) { //Set Spam text $spam_text = ($superfecta->isSpam()) ? $options['scheme_settings']['SPAM_Text'] : ''; if($superfecta->isSpam() && $options['scheme_settings']['SPAM_Text_Substitute'] == 'Y') { - dbug($options['scheme_settings']); $callerid = $spam_text; } else { $callerid = $spam_text . " " . $superfecta->get_Prefix() . $callerid; @@ -461,7 +460,6 @@ public function ajaxHandler() { $scheme = $_REQUEST['scheme']; $source = $_REQUEST['source']; - $sql = "REPLACE INTO superfectaconfig (source,field,value) VALUES (?, ?, ?)"; $sth = $this->db->prepare($sql); foreach($params as $key => $data) { @@ -533,6 +531,9 @@ public function ajaxHandler() { $form_html .= ''.$data['description'].''; $form_html .= ''; break; + case "info": + $form_html .= $default; + break; case "select": $value = isset($n_settings[$key]) ? $n_settings[$key] : $default; $form_html .= ''.$data['description'].''; diff --git a/sources/source-GooglePlaces.module b/sources/source-GooglePlaces.module index 34c34d71..de2a95b8 100644 --- a/sources/source-GooglePlaces.module +++ b/sources/source-GooglePlaces.module @@ -31,7 +31,7 @@ class GooglePlaces extends superfecta_base { 'Privacy_Policy' => array ( 'description' => _('Google Maps API requires this module provide the this privacy policy'), 'type' => 'info', - 'default' => '