partial #4437
This commit is contained in:
parent
16cb457a76
commit
01bf1146e1
@ -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);
|
||||
|
||||
@ -284,7 +284,10 @@ class Crunchbutton_Support extends Cana_Table {
|
||||
}
|
||||
|
||||
if( $support && $support->id_support ){
|
||||
$support->status = Crunchbutton_Support::STATUS_OPEN;
|
||||
$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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user