Remove var_dump
This commit is contained in:
parent
01e7b5747d
commit
628918f863
@ -244,7 +244,7 @@ class modAgenda extends DolibarrModules
|
|||||||
// Calendar
|
// Calendar
|
||||||
$this->menu[$r]=array('fk_menu'=>'r=1',
|
$this->menu[$r]=array('fk_menu'=>'r=1',
|
||||||
'type'=>'left',
|
'type'=>'left',
|
||||||
'titre'=>'Agenda',
|
'titre'=>'Calendar',
|
||||||
'mainmenu'=>'agenda',
|
'mainmenu'=>'agenda',
|
||||||
'url'=>'/comm/action/index.php?action=default&mainmenu=agenda&leftmenu=agenda',
|
'url'=>'/comm/action/index.php?action=default&mainmenu=agenda&leftmenu=agenda',
|
||||||
'langs'=>'agenda',
|
'langs'=>'agenda',
|
||||||
|
|||||||
@ -930,18 +930,17 @@ class EmailCollector extends CommonObject
|
|||||||
if ($errorforactions) break;
|
if ($errorforactions) break;
|
||||||
if (empty($operation['status'])) continue;
|
if (empty($operation['status'])) continue;
|
||||||
|
|
||||||
|
|
||||||
// Make Operation
|
// Make Operation
|
||||||
if ($operation['type'] == 'recordevent')
|
if ($operation['type'] == 'recordevent')
|
||||||
{
|
{
|
||||||
$actioncode = 'EMAIL_IN';
|
$actioncode = 'EMAIL_IN';
|
||||||
var_dump($structure);
|
|
||||||
// Insert record of emails sent
|
// Insert record of emails sent
|
||||||
$actioncomm = new ActionComm($this->db);
|
$actioncomm = new ActionComm($this->db);
|
||||||
|
|
||||||
$actioncomm->type_code = 'AC_OTH_AUTO'; // Type of event ('AC_OTH', 'AC_OTH_AUTO', 'AC_XXX'...)
|
$actioncomm->type_code = 'AC_OTH_AUTO'; // Type of event ('AC_OTH', 'AC_OTH_AUTO', 'AC_XXX'...)
|
||||||
$actioncomm->code = 'AC_'.$actioncode;
|
$actioncomm->code = 'AC_'.$actioncode;
|
||||||
$actioncomm->label = $subject;
|
$actioncomm->label = $langs->trans("EmailReceived").' - '.$langs->trans("From").' '.$from;
|
||||||
$actioncomm->note = $messagetext;
|
$actioncomm->note = $messagetext;
|
||||||
$actioncomm->fk_project = 0;
|
$actioncomm->fk_project = 0;
|
||||||
$actioncomm->datep = $date;
|
$actioncomm->datep = $date;
|
||||||
@ -983,9 +982,12 @@ class EmailCollector extends CommonObject
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
var_dump($actioncomm);exit;
|
elseif ($operation['type'] == 'aaa')
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
if (! $errorforactions)
|
if (! $errorforactions)
|
||||||
{
|
{
|
||||||
$nbactiondone++;
|
$nbactiondone++;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user