Skip to content
Snippets Groups Projects
Commit de16a663 authored by Florian Azizian's avatar Florian Azizian
Browse files

FEAT Add label in modal send to MaarchParapheur

parent 6cdbe9ca
No related branches found
No related tags found
No related merge requests found
...@@ -109,9 +109,9 @@ function check_form($form_id, $values) ...@@ -109,9 +109,9 @@ function check_form($form_id, $values)
} }
} }
if ($config['id'] == 'maarchParapheur') { if ($config['id'] == 'maarchParapheur') {
$objectSent = get_value_fields($values, 'objectSent'); $objectSentSign = get_value_fields($values, 'objectSentSign');
$hasAttachmentError = hasAttachmentError(); $hasAttachmentError = hasAttachmentError();
if ($objectSent == 'attachment' && $hasAttachmentError['error']) { if ($objectSentSign == 'attachment' && $hasAttachmentError['error']) {
if (!empty($_SESSION['stockCheckbox'])) { if (!empty($_SESSION['stockCheckbox'])) {
$_SESSION['action_error'] = _MAIL_HAS_NO_RESPONSE_PROJECT . ' : ' . implode(",", $hasAttachmentError['resList']); $_SESSION['action_error'] = _MAIL_HAS_NO_RESPONSE_PROJECT . ' : ' . implode(",", $hasAttachmentError['resList']);
} else { } else {
...@@ -166,7 +166,13 @@ function manage_form($arr_id, $history, $id_action, $label_action, $status, $col ...@@ -166,7 +166,13 @@ function manage_form($arr_id, $history, $id_action, $label_action, $status, $col
include_once 'modules/visa/class/MaarchParapheurController.php'; include_once 'modules/visa/class/MaarchParapheurController.php';
$processingUser = get_value_fields($values_form, 'processingUser'); $processingUser = get_value_fields($values_form, 'processingUser');
$objectSent = get_value_fields($values_form, 'objectSent'); $objectSentNote = get_value_fields($values_form, 'objectSentNote');
$objectSentSign = get_value_fields($values_form, 'objectSentSign');
if (!empty($objectSentNote)) {
$objectSent = $objectSentNote;
} else {
$objectSent = $objectSentSign;
}
$attachmentToFreeze = MaarchParapheurController::sendDatas([ $attachmentToFreeze = MaarchParapheurController::sendDatas([
'config' => $config, 'config' => $config,
'resIdMaster' => $res_id, 'resIdMaster' => $res_id,
......
...@@ -30,7 +30,8 @@ class MaarchParapheurController ...@@ -30,7 +30,8 @@ class MaarchParapheurController
} }
} }
$html .= '</select><br /><br /><br /><br />'; $html .= '</select><br /><br /><br /><br />';
$html .= '<input type="radio" name="objectSent" id="objectSent" value="mail" checked="checked" />' . _MAIL_NOTE . '<br/><input type="radio" name="objectSent" id="objectSent" value="attachment" />' . _ATTACHMENT_SIGNATURE .'<br /><br />'; $html .= '<input type="radio" name="objectSent" id="objectSentNote" value="mail" checked="checked" /><label for="objectSentNote" style="float: none;display: unset;">' . _MAIL_NOTE . '</label><br/>';
$html .= '<input type="radio" name="objectSent" id="objectSentSign" value="attachment" /><label for="objectSentSign" style="float: none;display: unset;">' . _ATTACHMENT_SIGNATURE .'</label><br /><br />';
return $html; return $html;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment