Provide information of thirdparty, contact or project to SMS handler

This commit is contained in:
Laurent Destailleur 2020-03-19 19:11:34 +01:00
parent 303961b0a6
commit 03b261d54c
2 changed files with 16 additions and 1 deletions

View File

@ -47,6 +47,11 @@ class CSMSFile
public $message;
public $nostop;
public $socid;
public $contactid;
public $fk_project;
/**
* CSMSFile
@ -125,7 +130,12 @@ class CSMSFile
$sms->class=$this->class;
$sms->nostop=$this->nostop;
$sms->socid=$this->socid;
$sms->contactid=$this->contactid;
$sms->project=$this->fk_project;
$res=$sms->SmsSend();
if ($res <= 0)
{
$this->error=$sms->error;
@ -155,7 +165,12 @@ class CSMSFile
$sms->message=$this->message;
$sms->nostop=$this->nostop;
$sms->socid=$this->socid;
$sms->contactid=$this->contactid;
$sms->fk_project=$this->fk_project;
$res=$sms->SmsSend();
$this->error = $sms->error;
$this->errors = $sms->errors;
if ($res <= 0)

View File

@ -293,7 +293,7 @@ function limitChars(textarea, limit, infodiv)
//var_dump($_REQUEST);exit;
print $form->selectarray("receiver", $liste, GETPOST("receiver"), 1);
}
print ' '.$langs->trans("SmsInfoNumero");
print ' <span class="opacitymedium">'.$langs->trans("SmsInfoNumero").'</span>';
}
print "</td></tr>\n";
}