Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Libriciel
web-DPO
Commits
24f701d9
Commit
24f701d9
authored
Sep 07, 2020
by
Théo GUILLON
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correction : génération du traitement avec des formats non pris en compte dans la génération
parent
40eb4929
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
app/Model/Fiche.php
app/Model/Fiche.php
+12
-8
No files found.
app/Model/Fiche.php
View file @
24f701d9
...
...
@@ -607,8 +607,9 @@ class Fiche extends AppModel implements LinkedOrganisationInterface {
$content
=
file_get_contents
(
$filename
);
break
;
default
:
$msgstr
=
'Type MIME %s non pris en charge pour le fichier %s'
;
throw
new
RuntimeException
(
sprintf
(
$msgstr
,
$mime
,
$filename
));
break
;
// $msgstr = 'Type MIME %s non pris en charge pour le fichier %s';
// throw new RuntimeException(sprintf($msgstr, $mime, $filename));
}
$donnees
[
'corpsTraitements'
][
$key
][
'traitement_genere'
]
=
[
...
...
@@ -1188,14 +1189,17 @@ class Fiche extends AppModel implements LinkedOrganisationInterface {
$content
=
file_get_contents
(
$filename
);
break
;
default
:
$msgstr
=
'Type MIME %s non pris en charge pour le fichier %s'
;
throw
new
RuntimeException
(
sprintf
(
$msgstr
,
$mime
,
$filename
));
break
;
// $msgstr = 'Type MIME %s non pris en charge pour le fichier %s';
// throw new RuntimeException(sprintf($msgstr, $mime, $filename));
}
$donnees
[
'fichiers'
][
$key
][
'valeur_annexe'
]
=
[
'value'
=>
$content
,
'type'
=>
'file'
];
if
(
!
empty
(
$content
))
{
$donnees
[
'fichiers'
][
$key
][
'valeur_annexe'
]
=
[
'value'
=>
$content
,
'type'
=>
'file'
];
}
$donnees
[
'info_fichiers'
][
$key
][
'valeur_nom_fichier'
]
=
[
'value'
=>
$fileAnnexe
[
'Fichier'
][
'nom'
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment