Project

General

Profile

Actions

Anomalie #29227

closed

REVIEW - dest_user incorrect lors de l'injection des courriers

Added by Mohamed AHMIM 11 months ago. Updated 10 months ago.

Status:
R&D - Terminé
Priority:
1-Majeur
Target version:
Start date:
06/10/2024
Due date:

Description

TC:

Injection du courrier avec la commande suivante (diffusionList n'est pas renseigné):

curl --request POST
--url 'http://cchaplin:maarch@127.0.0.1/MC/mc0/rest/resources'
--header 'Content-Type: application/json'
--data '{
"subject": "Test CCN - SVE ATT to entity DC1",
"modelId": 1,
"destination": 6,
"typist": 311,
"initiator": 73,
"format": "pdf",
"status": "NEW",
"chrono": "true",
"documentDate": "2023-06-06",
"arrivalDate": "2023-06-06",
"senders": [{"type":"user","id":3}],
"barcode": null,
"doctype": "101",
"confidentiality": false,
"category_id": "incoming"
}'

Résultat incorrect:

Création du courrier avec dest_user = id de la table list_templates_items

Résultat attendu:

dest_user = item_id de la table list_templates_items

Solution proposée:

Dans le fichier "/MAARCHCOURRIER/src/app/resource/controllers/ResController.php", à la ligne 1169, remplacer:

ResModel::update(['set' => ['dest_user' => $diffusion['id']], 'where' => ['res_id = ?'], 'data' => [$args['resId']]]);

par:

ResModel::update(['set' => ['dest_user' => $diffusion['item_id']], 'where' => ['res_id = ?'], 'data' => [$args['resId']]]);

Actions #1

Updated by Mohamed AHMIM 11 months ago

  • Description updated (diff)
Actions #2

Updated by Mohamed AHMIM 11 months ago

  • Description updated (diff)
Actions #3

Updated by Mohamed AHMIM 11 months ago

  • Description updated (diff)
Actions #5

Updated by Emmanuel DILLARD 10 months ago

  • Subject changed from dest_user incorrect lors de l'injection des courriers to REVIEW - dest_user incorrect lors de l'injection des courriers
  • Due date set to 06/17/2024
  • Status changed from A qualifier to R&D - A étudier
  • Version source set to 2301
Actions #6

Updated by Emmanuel DILLARD 10 months ago

  • Due date deleted (06/17/2024)
Actions #7

Updated by Emmanuel DILLARD 10 months ago

  • Status changed from R&D - A étudier to R&D - A planifier
Actions #8

Updated by Emmanuel DILLARD 10 months ago

  • Status changed from R&D - A planifier to R&D - En cours
  • Assignee changed from Emmanuel DILLARD to Nicolas COUTURE
Actions #10

Updated by Nicolas COUTURE 10 months ago

  • Status changed from R&D - En cours to R&D - En test
Actions #11

Updated by Joseph AKEL 10 months ago

  • Status changed from R&D - En test to R&D - Terminé
Actions

Also available in: Atom PDF