Skip to content
Snippets Groups Projects
Verified Commit aeb5dae5 authored by Damien's avatar Damien
Browse files

FEAT #8769 Take destination into account for notes confirm simple action 2

parent 8e2156dd
No related branches found
No related tags found
No related merge requests found
......@@ -43,12 +43,15 @@ function get_form_txt($values, $path_manage_action, $id_action, $table, $module
$templatesControler = new templates_controler();
$templates = array();
$stmt = $db->query("SELECT destination FROM res_letterbox WHERE res_id = (?)", [$res_id]);
$resultDest = $stmt->fetchObject();
$destination = $resultDest->destination;
if ($destination <> '') {
$templates = $templatesControler->getAllTemplatesForProcess($destination);
} else {
$templates = $templatesControler->getAllTemplatesForSelect();
}
$frm_str .='<center style="font-size:15px;">'._ACTION_CONFIRM.'<br/><br/><b>'.strtoupper($labelAction).' ?</b></center><br/>';
$frm_str ='<center style="font-size:15px;">'._ACTION_CONFIRM.'<br/><br/><b>'.strtoupper($labelAction).' ?</b></center><br/>';
$frm_str .='<b>'._PROCESS_NOTES.':</b><br/>';
$frm_str .= '<select name="templateNotes" id="templateNotes" style="width:98%;margin-bottom: 10px;background-color: White;border: 1px solid #999;color: #666;text-align: left;" '
. 'onchange="addTemplateToNote($(\'templateNotes\').value, \''
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment