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
bf113511
Commit
bf113511
authored
Jul 02, 2018
by
tguillon
Browse files
Correction erreur d'enregistrement liée à la position. La valeur renvoyée
par le navigateur n'était pas un int mais un float
parent
e6ceecce
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/Controller/FormulairesController.php
View file @
bf113511
...
...
@@ -369,11 +369,11 @@ class FormulairesController extends AppController {
break
;
case
'ligne'
:
$ligne
=
$valeur
;
$ligne
=
(
int
)
round
(
$valeur
,
0
)
;
break
;
case
'colonne'
:
$colonne
=
$valeur
;
$colonne
=
(
int
)
round
(
$valeur
,
0
)
;
break
;
default
:
...
...
@@ -381,7 +381,7 @@ class FormulairesController extends AppController {
break
;
}
}
$this
->
Champ
->
create
([
'formulaires_id'
=>
$id
,
'type'
=>
$type
,
...
...
@@ -503,16 +503,16 @@ class FormulairesController extends AppController {
break
;
case
'ligne'
:
$ligne
=
$valeur
;
$ligne
=
(
int
)
round
(
$valeur
,
0
)
;
break
;
case
'colonne'
:
$colonne
=
$valeur
;
$colonne
=
(
int
)
round
(
$valeur
,
0
)
;
break
;
default
:
$sortie
[
$clef
]
=
$valeur
;
break
;
break
;
}
}
...
...
app/View/Formulaires/edit.ctp
View file @
bf113511
...
...
@@ -319,7 +319,7 @@
<?php
echo
$this
->
Form
->
create
(
'Formulaire'
,
[
'action'
=>
'edit'
,
'url'
=>
[
'action'
=>
'edit'
]
,
'id'
=>
'addForm'
]);
...
...
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