From 839700af1f8a4e4a297650ca23967b2d86c8d03d Mon Sep 17 00:00:00 2001
From: Damien <damien.burel@maarch.org>
Date: Mon, 6 Apr 2020 11:57:37 +0200
Subject: [PATCH] FEAT #13678 TIME 0:10 Fix typist

---
 src/app/attachment/models/AttachmentModelAbstract.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/app/attachment/models/AttachmentModelAbstract.php b/src/app/attachment/models/AttachmentModelAbstract.php
index c6b19daecb1..54b34203345 100755
--- a/src/app/attachment/models/AttachmentModelAbstract.php
+++ b/src/app/attachment/models/AttachmentModelAbstract.php
@@ -62,8 +62,8 @@ abstract class AttachmentModelAbstract
     public static function create(array $args)
     {
         ValidatorModel::notEmpty($args, ['format', 'typist', 'creation_date', 'docserver_id', 'path', 'filename', 'fingerprint', 'filesize', 'status', 'relation']);
-        ValidatorModel::stringType($args, ['format', 'typist', 'creation_date', 'docserver_id', 'path', 'filename', 'fingerprint', 'status']);
-        ValidatorModel::intVal($args, ['filesize', 'relation']);
+        ValidatorModel::stringType($args, ['format', 'creation_date', 'docserver_id', 'path', 'filename', 'fingerprint', 'status']);
+        ValidatorModel::intVal($args, ['filesize', 'relation', 'typist']);
 
         $nextSequenceId = DatabaseModel::getNextSequenceValue(['sequenceId' => 'res_attachment_res_id_seq']);
         $args['res_id'] = $nextSequenceId;
-- 
GitLab