Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Libriciel
web-DPO
Commits
72a6f6fb
Commit
72a6f6fb
authored
Sep 10, 2020
by
Théo GUILLON
Browse files
Correction : key
parent
945258ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Model/Fiche.php
View file @
72a6f6fb
...
...
@@ -876,13 +876,16 @@ class Fiche extends AppModel implements LinkedOrganisationInterface {
$prefix
=
'valeur_'
;
}
foreach
(
$jsons
as
$key
=>
$json
)
{
$key
=
0
;
foreach
(
$jsons
as
$json
)
{
foreach
(
$json
as
$variable
=>
$val
)
{
$donnees
[
$value
[
'Valeur'
][
'champ_name'
]][
$key
][
$prefix
.
$variable
]
=
[
'value'
=>
$val
,
'type'
=>
'text'
];
}
$key
++
;
}
}
else
{
$donnees
[
'valeur_'
.
$value
[
'Valeur'
][
'champ_name'
]]
=
[
...
...
Write
Preview
Supports
Markdown
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