Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mathieu
potage
Commits
e43e32de
Commit
e43e32de
authored
Jul 27, 2018
by
Mat
Browse files
!!! JMS serializer génère un json avec nommage aléatoire: prixUnitaire ou prix_unitaire !!!
parent
55df0f3c
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/config/config.yml
View file @
e43e32de
...
...
@@ -10,6 +10,9 @@ imports:
parameters
:
locale
:
fr
app.path.legume_images
:
/uploads/images/legumes
# Fixe le nommage des variables de plusieurs mots
# Attention, ça va disfonctionner, il faut repasser dans tous les javascripts !!!!
# jms_serializer.camel_case_naming_strategy.class: JMS\Serializer\Naming\IdenticalPropertyNamingStrategy
framework
:
#esi: ~
...
...
web/js/ajax_functions.js
View file @
e43e32de
...
...
@@ -369,7 +369,7 @@ function buildItemOffreLegumes(jsonRow)
let
prix
=
document
.
createElement
(
'
span
'
);
prix
.
classList
.
add
(
'
prix
'
);
prix
.
textContent
=
jsonRow
.
prixUnitaire
;
prix
.
textContent
=
jsonRow
.
prixUnitaire
;
// ou prix_unitaire !!
dprix
.
appendChild
(
prix
);
let
devise
=
document
.
createElement
(
'
span
'
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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