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
154bd893
Commit
154bd893
authored
Feb 25, 2019
by
Mikael Salson
Browse files
Sujet.php: Initialize all fields in constructor when copying
parent
d69ceaf0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Alecsia/AnnotationBundle/Entity/Sujet.php
View file @
154bd893
...
@@ -350,7 +350,7 @@ class Sujet {
...
@@ -350,7 +350,7 @@ class Sujet {
// à l'exception près des rendus.
// à l'exception près des rendus.
public
function
cloner
(
$ue
)
{
public
function
cloner
(
$ue
)
{
// Nouveau sujet
// Nouveau sujet
$new_sujet
=
new
Sujet
(
$this
->
getNom
(),
$this
->
getIsTD
(),
self
::
STATUS_WAIT
,
$this
->
getNotesur
());
$new_sujet
=
new
Sujet
(
$this
->
getNom
(),
$this
->
getIsTD
(),
self
::
STATUS_WAIT
,
$this
->
getNotesur
()
,
$this
->
getNoteInitiale
(),
$this
->
getSubjectGuts
()
);
// Copie des exercices
// Copie des exercices
$old_exs
=
$this
->
getExercices
();
$old_exs
=
$this
->
getExercices
();
...
...
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