Actions
Anomalie #15121
ferméVisualiser les pdf retour Maarch Parapheur
Début:
13/10/2020
Echéance:
Description
AttachmentController.php, 140 :
$attachment['signedResponse'] = $signedResponse[0]['res_id'];
if (!empty($signedResponse[0]['signatory_user_serial_id'])) {
$attachment['signatory'] = UserModel::getLabelledUserById(['id' => $signedResponse[0]['signatory_user_serial_id']]);
} else {
$attachment['signatory'] = UserModel::getLabelledUserById(['login' => $signedResponse[0]['typist']]);
}
$attachment['signDate'] = $signedResponse[0]['creation_date'];
UserModel.php, 278 :
public static function getLabelledUserById(array $aArgs)
{
ValidatorModel::intVal($aArgs, ['id']);
ValidatorModel::stringType($aArgs, ['login']);
Le typist est un ID, hors on contrôle un string.
Il faudrait choisir un type concordant.
Actions