update
This commit is contained in:
@@ -6,6 +6,7 @@ namespace App\Controllers;
|
||||
|
||||
use App\Core\Access;
|
||||
use App\Core\Csrf;
|
||||
use App\Core\Journal;
|
||||
use App\Core\JsonResponse;
|
||||
use App\Core\PdfResponse;
|
||||
use App\Core\Request;
|
||||
@@ -215,6 +216,14 @@ final class StructureController
|
||||
]);
|
||||
}
|
||||
|
||||
Journal::ecriture(
|
||||
'STRUCTURE_CREEE',
|
||||
'structure',
|
||||
isset($structure['id_structure']) ? (int) $structure['id_structure'] : null,
|
||||
sprintf('Création du lieu d’affectation « %s » (%s).', $name, $code),
|
||||
['code' => $code, 'type_affectation' => $typeAffectation]
|
||||
);
|
||||
|
||||
JsonResponse::send(201, [
|
||||
'message' => sprintf('Le lieu d’affectation « %s » a été ajouté.', $name),
|
||||
'structure' => $structure,
|
||||
|
||||
Reference in New Issue
Block a user