diff --git a/src/app/attachment/models/AttachmentModelAbstract.php b/src/app/attachment/models/AttachmentModelAbstract.php index c6b19daecb1f8fe258f53159567557dee0b8f683..54b34203345b79b77445195ed14894c7950036d8 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;