mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-10 19:41:26 +01:00
Add fk_email_template
This commit is contained in:
@@ -1180,7 +1180,7 @@ if ($action == 'create')
|
|||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
//Mail Model
|
//Mail Model
|
||||||
print '<tr><td class="titlefieldcreate nowrap">'.$langs->trans("Model").'</td><td colspan="3">';
|
print '<tr><td class="titlefieldcreate nowrap">'.$langs->trans("EMailTemplates").'</td><td colspan="3">';
|
||||||
print $form->select_model_mail('eventpush', 'event_push');
|
print $form->select_model_mail('eventpush', 'event_push');
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
|
|||||||
@@ -82,6 +82,7 @@ class ActionCommReminder extends CommonObject
|
|||||||
'offsetunit' => array('type'=>'varchar(1)', 'label'=>'OffsetUnit', 'visible'=>1, 'enabled'=>1, 'position'=>57, 'notnull'=>1, 'comment'=>"m, h, d, w",),
|
'offsetunit' => array('type'=>'varchar(1)', 'label'=>'OffsetUnit', 'visible'=>1, 'enabled'=>1, 'position'=>57, 'notnull'=>1, 'comment'=>"m, h, d, w",),
|
||||||
'status' => array('type'=>'integer', 'label'=>'Status', 'visible'=>1, 'enabled'=>1, 'position'=>58, 'notnull'=>1, 'default'=>0, 'index'=>0, 'arrayofkeyval'=>array('0'=>'ToDo', '1'=>'Done')),
|
'status' => array('type'=>'integer', 'label'=>'Status', 'visible'=>1, 'enabled'=>1, 'position'=>58, 'notnull'=>1, 'default'=>0, 'index'=>0, 'arrayofkeyval'=>array('0'=>'ToDo', '1'=>'Done')),
|
||||||
'fk_project' => array('type'=>'integer', 'label'=>'Project', 'visible'=>1, 'enabled'=>1, 'position'=>59, 'notnull'=>1),
|
'fk_project' => array('type'=>'integer', 'label'=>'Project', 'visible'=>1, 'enabled'=>1, 'position'=>59, 'notnull'=>1),
|
||||||
|
'fk_email_template' => array('type'=>'integer', 'label'=>'Project', 'visible'=>1, 'enabled'=>1, 'position'=>59, 'notnull'=>0),
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -115,6 +116,11 @@ class ActionCommReminder extends CommonObject
|
|||||||
*/
|
*/
|
||||||
public $fk_project;
|
public $fk_project;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var int Template Mail
|
||||||
|
*/
|
||||||
|
public $fk_email_template;
|
||||||
|
|
||||||
const STATUS_TODO = 0;
|
const STATUS_TODO = 0;
|
||||||
const STATUS_DONE = 1;
|
const STATUS_DONE = 1;
|
||||||
|
|
||||||
|
|||||||
@@ -283,3 +283,4 @@ insert into llx_c_action_trigger (code,label,description,elementtype,rang) value
|
|||||||
|
|
||||||
ALTER TABLE llx_actioncomm_reminder ADD COLUMN entity integer NOT NULL DEFAULT 1;
|
ALTER TABLE llx_actioncomm_reminder ADD COLUMN entity integer NOT NULL DEFAULT 1;
|
||||||
ALTER TABLE llx_actioncomm_reminder ADD COLUMN fk_project integer NOT NULL;
|
ALTER TABLE llx_actioncomm_reminder ADD COLUMN fk_project integer NOT NULL;
|
||||||
|
ALTER TABLE llx_actioncomm_reminder ADD COLUMN fk_email_template integer;
|
||||||
Reference in New Issue
Block a user