Commit 0eeb680a authored by Stephane Bouvry's avatar Stephane Bouvry
Browse files

Fix Format de fichier signature (aucun contrôle si le paramètre n'est pas renseigné)

parent 976f523d
Loading
Loading
Loading
Loading
Loading
+1 −1
Changes for module/Oscar/src/Oscar/Service/ContractDocumentService.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -200,7 +200,7 @@ class ContractDocumentService implements UseOscarConfigurationService, UseEntity
        // Configuration du Flow / Comparaison à la configuration initiale
        foreach ($signatureFlowDatas['steps'] as &$step) {

            if(array_key_exists('limitFormat', $step) && !in_array($fileMime, $step['limitFormat']) ) {
            if(array_key_exists('limitFormat', $step) && count($step['limitFormat'])>0 && !in_array($fileMime, $step['limitFormat']) ) {
                $errors[] = sprintf(
                    _("L'étape '%s' (parapheur %s) n'autorise pas ce format de fichier '%s'"),
                    $step['label'],