From 2c09fe825b15542e9cb7a9edb7031b00bb449a45 Mon Sep 17 00:00:00 2001 From: Daniel Camargo Date: Wed, 16 Apr 2014 17:14:18 -0300 Subject: [PATCH] Send SMSes to CS as well as recipients #2966 --- .../default/cockpit/support/index.php | 2 +- .../default/cockpit/tests/support.php | 16 ---------------- 2 files changed, 1 insertion(+), 17 deletions(-) delete mode 100644 include/controllers/default/cockpit/tests/support.php diff --git a/include/controllers/default/cockpit/support/index.php b/include/controllers/default/cockpit/support/index.php index 62dbf6e72..95fc05067 100644 --- a/include/controllers/default/cockpit/support/index.php +++ b/include/controllers/default/cockpit/support/index.php @@ -131,7 +131,7 @@ class Controller_Support extends Crunchbutton_Controller_Account { if ( $support->permissionToEdit() ) { if( $_POST['text'] ){ $support->addAdminReply( $_POST['text'] ); - if( ( $support->type == TYPE_SMS || $support->type == TYPE_BOX_NEED_HELP ) && $support->id_session_twilio ){ + if( ( $support->type == Crunchbutton_Support::TYPE_SMS || $support->type == Crunchbutton_Support::TYPE_BOX_NEED_HELP ) && $support->id_session_twilio ){ $message = c::admin()->name . ' replied @' . $support->id_session_twilio . ' : ' . $_POST['text']; Crunchbutton_Support::tellCustomerService( $message ); } diff --git a/include/controllers/default/cockpit/tests/support.php b/include/controllers/default/cockpit/tests/support.php deleted file mode 100644 index f8ee68a47..000000000 --- a/include/controllers/default/cockpit/tests/support.php +++ /dev/null @@ -1,16 +0,0 @@ -firstMessage()->body == '(Ticket created at cockpit)' ){ - $support->type = Crunchbutton_Support::TYPE_COCKPIT_CHAT; - $support->save(); - } - } - echo 'done!'; - } -}