Skip to content

Commit

Permalink
Merge branch 'hotfix/2.2.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
oceanBigOne committed Dec 23, 2019
2 parents 8aabef1 + b029c96 commit 573a714
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ That's all...

## Versions

#### 2.2.4
- bug fix : viewing result admin page can cache result data before the end of vote

#### 2.2.3
- bug fix : counter of participations on result page

Expand Down
5 changes: 5 additions & 0 deletions src/Controller/Vote.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,11 @@ public function form($url_key, ParametersService $params)
$vote->setVoteValue($vote_value);
$entityManager->persist($vote);
$entityManager->flush();

$filesystem = new Filesystem();
if ($filesystem->exists(__DIR__ . '/../../var/cached-result/' . $proposal->getUrlKey())){
$filesystem->remove(__DIR__ . '/../../var/cached-result/' . $proposal->getUrlKey());
}
}

$dataForm["redirect"] = true;
Expand Down

0 comments on commit 573a714

Please sign in to comment.