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
Mikael Salson
alecsia
Commits
45ffd741
Commit
45ffd741
authored
Feb 13, 2020
by
Mikael Salson
Browse files
Sujet/DefaultController.php: Modify the initial mark when we modify note_sur
Fix
#12
parent
43a99bf4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Alecsia/AnnotationBundle/Controller/Sujet/DefaultController.php
View file @
45ffd741
...
...
@@ -237,12 +237,14 @@ class DefaultController extends AlecsiaController {
}
if
(
$notesur
!==
""
)
{
$sujet
->
setNoteSur
(
$notesur
);
}
$noteInitiale
=
$sujet
->
getNoteInitiale
();
if
(
$noteInitiale
!=
0
)
{
$noteInitiale
=
$notesur
;
$noteInitiale
=
(
$notesur
/
$sujet
->
getNoteSur
())
*
$noteInitiale
;
$noteInitiale
=
$an
->
arrondirNotes
(
$noteInitiale
,
$an
::
ARR_UNITE
,
$an
::
ARR_PROCHE
);
$sujet
->
setNoteInitiale
(
$noteInitiale
);
}
if
(
$notesur
!==
""
)
{
$sujet
->
setNoteSur
(
$notesur
);
}
if
(
$nombreDeCran
!==
""
)
{
...
...
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