Skip to content
Snippets Groups Projects
Commit b95150af authored by Pegane Nestor's avatar Pegane Nestor
Browse files

FIX #7068 foreach on res_ids added for notes

parent 696be18e
No related branches found
No related tags found
No related merge requests found
...@@ -134,7 +134,6 @@ function manage_form($arr_id, $history, $id_action, $label_action, $status, $col ...@@ -134,7 +134,6 @@ function manage_form($arr_id, $history, $id_action, $label_action, $status, $col
$_SESSION['action_error'] = ''; $_SESSION['action_error'] = '';
$result = ''; $result = '';
$coll_id = $_SESSION['current_basket']['coll_id']; $coll_id = $_SESSION['current_basket']['coll_id'];
$res_id = $arr_id[0];
require_once("core/class/class_security.php"); require_once("core/class/class_security.php");
$sec = new security(); $sec = new security();
$table = $sec->retrieve_table_from_coll($coll_id); $table = $sec->retrieve_table_from_coll($coll_id);
...@@ -142,13 +141,19 @@ function manage_form($arr_id, $history, $id_action, $label_action, $status, $col ...@@ -142,13 +141,19 @@ function manage_form($arr_id, $history, $id_action, $label_action, $status, $col
# save note # save note
if($formValues['note_content_to_users'] != ''){ if($formValues['note_content_to_users'] != ''){
//Add notes //Add notes
$nb_avis = $sequence +1; $msgResult = "";
$userIdTypist = $_SESSION['user']['UserId']; foreach($arr_id as $res_id){
$content_note = $formValues['note_content_to_users']; $nb_avis = $sequence +1;
$content_note = str_replace(";", ".", $content_note); $userIdTypist = $_SESSION['user']['UserId'];
$content_note = str_replace("--", "-", $content_note); $content_note = $formValues['note_content_to_users'];
$content_note = $content_note; $content_note = str_replace(";", ".", $content_note);
$note->addNote($res_id, $coll_id, $content_note); $content_note = str_replace("--", "-", $content_note);
$content_note = $content_note;
$msgResult .= $res_id.'#';
$note->addNote($res_id, $coll_id, $content_note);
}
} }
return array('result' => $res_id.'#', 'history_msg' => ''); return array('result' => $res_id.'#', 'history_msg' => '');
......
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