This commit is contained in:
Pererinha 2015-01-15 21:03:25 -02:00
parent 16cb457a76
commit 01bf1146e1
2 changed files with 5 additions and 2 deletions

View File

@ -652,7 +652,7 @@ class Crunchbutton_Community_Shift extends Cana_Table {
$num = ( $txt != '' ) ? $txt : $phone;
$cs_message = 'Driver notificaton: ' . str_replace( '|', '<br>', $message );
// Crunchbutton_Support::createNewWarning( [ 'body' => $cs_message, 'phone' => $num ] );
Crunchbutton_Support::createNewWarning( [ 'dont_open_ticket' => false, 'body' => $cs_message, 'phone' => $num ] );
if (strpos( $message, '|') > 0) {
$message = str_replace('|', "\n", $message);

View File

@ -284,7 +284,10 @@ class Crunchbutton_Support extends Cana_Table {
}
if( $support && $support->id_support ){
$open = isset( $params[ 'dont_open_ticket' ] ) ? false : true;
if( $open ){
$support->status = Crunchbutton_Support::STATUS_OPEN;
}
} else {
$support = new Crunchbutton_Support();
$support->type = Crunchbutton_Support::TYPE_WARNING;