Commit 3443af49 authored by Stephane Bouvry's avatar Stephane Bouvry
Browse files

Fix limitFormat (signature)

parent e6821c24
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
@@ -202,7 +202,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'],