|
@@ -50,7 +50,7 @@ final class ArticleController extends AbstractController
|
|
|
|
|
|
if ($form->isSubmitted() && $form->isValid()) {
|
|
|
$publicationChoice = $form->get('publicationChoice')->getData();
|
|
|
- if ($publicationChoice !== "") {
|
|
|
+ if ($publicationChoice !== null) {
|
|
|
$workflow->apply($article, $publicationChoice);
|
|
|
}
|
|
|
|
|
@@ -99,7 +99,7 @@ final class ArticleController extends AbstractController
|
|
|
|
|
|
if ($form->isSubmitted() && $form->isValid()) {
|
|
|
$publicationChoice = $form->get('publicationChoice')->getData();
|
|
|
- if ($publicationChoice !== "") {
|
|
|
+ if ($publicationChoice !== null) {
|
|
|
$workflow->apply($article, $publicationChoice);
|
|
|
}
|
|
|
|