Anomalie #7809
ferméGROUPE : Supprimer un groupe
Description
En tant qu'administrateur fonctionnel
je souhaite supprimer un groupe d'utilisateurs
Message de traitement vide, cela n'aboutit pas. Le groupe est toujours présent
Code lié :
"message": "Slim Application Error",
"exception": [
{
"type": "Exception",
"code": 0,
"message": "SQLSTATE[23505]: Unique violation: 7 ERREUR: la valeur d'une cl\u00e9 dupliqu\u00e9e rompt la contrainte unique \u00ab usergroup_content_pkey \u00bb\nDETAIL: La cl\u00e9 \u00ab (user_id, group_id)=(sandrine.estrade, AGENT) \u00bb existe d\u00e9j\u00e0.",
"file": "/var/www/html/MaarchCourrier/src/core/models/DatabasePDO.php",
"line": 148,
"trace": [
"#0 /var/www/html/MaarchCourrier/src/core/models/DatabaseModel.php(217): SrcCore\models\DatabasePDO->query('UPDATE usergrou...', Array)",
"#1 /var/www/html/MaarchCourrier/src/app/group/models/GroupModelAbstract.php(355): SrcCore\models\DatabaseModel::update(Array)",
"#2 /var/www/html/MaarchCourrier/src/app/group/controllers/GroupController.php(181): Group\models\GroupModelAbstract::reassignUsers(Array)",
"#3 [internal function]: Group\controllers\GroupController->reassignUsers(Object(Slim\Http\Request), Object(Slim\Http\Response), Array)",
"#4 /var/www/html/MaarchCourrier/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(41): call_user_func(Array, Object(Slim\Http\Request), Object(Slim\Http\Response), Array)",
"#5 /var/www/html/MaarchCourrier/vendor/slim/slim/Slim/Route.php(335): Slim\Handlers\Strategies\RequestResponse->__invoke(Array, Object(Slim\Http\Request), Object(Slim\Http\Response), Array)",
"#6 /var/www/html/MaarchCourrier/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\Route->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response))",
"#7 /var/www/html/MaarchCourrier/vendor/slim/slim/Slim/Route.php(313): Slim\Route->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response))",
"#8 /var/www/html/MaarchCourrier/vendor/slim/slim/Slim/App.php(495): Slim\Route->run(Object(Slim\Http\Request), Object(Slim\Http\Response))",
"#9 /var/www/html/MaarchCourrier/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\App->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response))",
"#10 /var/www/html/MaarchCourrier/vendor/slim/slim/Slim/App.php(388): Slim\App->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response))",
"#11 /var/www/html/MaarchCourrier/vendor/slim/slim/Slim/App.php(296): Slim\App->process(Object(Slim\Http\Request), Object(Slim\Http\Response))",
"#12 /var/www/html/MaarchCourrier/rest/index.php(318): Slim\App->run()",
"#13 {main}"
]
}
]
}