Skip to content

Commit 19a3586

Browse files
Also fix re-uploading problem statements.
1 parent 0a6c51e commit 19a3586

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webapp/src/Entity/Problem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ public function getAttachments(): Collection
435435

436436
public function setProblemStatementContent(?ProblemStatementContent $content): self
437437
{
438-
$this->problemStatementContent->clear();
438+
$this->problemStatementContent = new ArrayCollection();
439439
if ($content) {
440440
$this->problemStatementContent->add($content);
441441
$content->setProblem($this);

0 commit comments

Comments
 (0)