NEW: can send mail from project card
This commit is contained in:
parent
0edba4b4a7
commit
f9bc5bf931
@ -446,6 +446,13 @@ if (empty($reshook))
|
||||
$comefromclone=true;
|
||||
}
|
||||
}
|
||||
|
||||
// Actions to send emails
|
||||
$trigger_name='PROJECT_SENTBYMAIL';
|
||||
$paramname='id';
|
||||
$autocopy='MAIN_MAIL_AUTOCOPY_ORDER_TO'; // used to know the automatic BCC to add
|
||||
$trackid='proj'.$object->id;
|
||||
include DOL_DOCUMENT_ROOT.'/core/actions_sendmails.inc.php';
|
||||
}
|
||||
|
||||
|
||||
@ -1075,6 +1082,9 @@ elseif ($object->id > 0)
|
||||
print '<div class="inline-block divButAction"><a class="butAction" href="'.DOL_URL_ROOT.'/comm/action/card.php?action=create&origin=' . $object->element . '&originid=' . $object->id . '&socid=' . $object->socid . '&projectid=' . $object->id . '">' . $langs->trans("AddAction") . '</a></div>';
|
||||
}*/
|
||||
|
||||
// Send
|
||||
print '<div class="inline-block divButAction"><a class="butAction" href="card.php?id='.$object->id.'&action=presend&mode=init#formmailbeforetitle">' . $langs->trans('SendMail').'</a></div>';
|
||||
|
||||
// Modify
|
||||
if ($object->statut != 2 && $user->rights->projet->creer)
|
||||
{
|
||||
@ -1244,6 +1254,14 @@ elseif ($object->id > 0)
|
||||
print '</div></div></div>';
|
||||
}
|
||||
|
||||
// Presend form
|
||||
$modelmail='project';
|
||||
$defaulttopic='SendProjectRef';
|
||||
$diroutput = $conf->projet->dir_output;
|
||||
$trackid = 'proj'.$object->id;
|
||||
|
||||
include DOL_DOCUMENT_ROOT.'/core/tpl/card_presend.tpl.php';
|
||||
|
||||
// Hook to add more things on page
|
||||
$parameters=array();
|
||||
$reshook=$hookmanager->executeHooks('mainCardTabAddMore',$parameters,$object,$action); // Note that $action and $object may have been modified by hook
|
||||
|
||||
Loading…
Reference in New Issue
Block a user