forked from ezsystems/repository-forms
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EZP-28944: ISE 500 when deleting Draft (ezsystems#223)
- Loading branch information
Showing
6 changed files
with
94 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{# do not put anything in here #} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
/** | ||
* @copyright Copyright (C) eZ Systems AS. All rights reserved. | ||
* @license For full copyright and license information view LICENSE file distributed with this source code. | ||
*/ | ||
declare(strict_types=1); | ||
|
||
namespace EzSystems\RepositoryForms\Content\View; | ||
|
||
use eZ\Publish\Core\MVC\Symfony\View\BaseView; | ||
use Symfony\Component\HttpFoundation\Response; | ||
use Symfony\Component\HttpKernel\Controller\ControllerReference; | ||
|
||
class ContentCreateSuccessView extends BaseView | ||
{ | ||
/** | ||
* @param \Symfony\Component\HttpFoundation\Response $response | ||
* | ||
* @throws \eZ\Publish\Core\Base\Exceptions\InvalidArgumentType | ||
*/ | ||
public function __construct(Response $response) | ||
{ | ||
parent::__construct('@EzSystemsRepositoryForms/http/302_empty_content.html.twig'); | ||
|
||
$this->setResponse($response); | ||
$this->setControllerReference(new ControllerReference('ez_content_edit:createWithoutDraftSuccessAction')); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
/** | ||
* @copyright Copyright (C) eZ Systems AS. All rights reserved. | ||
* @license For full copyright and license information view LICENSE file distributed with this source code. | ||
*/ | ||
declare(strict_types=1); | ||
|
||
namespace EzSystems\RepositoryForms\Content\View; | ||
|
||
use eZ\Publish\Core\MVC\Symfony\View\BaseView; | ||
use Symfony\Component\HttpFoundation\Response; | ||
use Symfony\Component\HttpKernel\Controller\ControllerReference; | ||
|
||
class ContentEditSuccessView extends BaseView | ||
{ | ||
/** | ||
* @param \Symfony\Component\HttpFoundation\Response $response | ||
* | ||
* @throws \eZ\Publish\Core\Base\Exceptions\InvalidArgumentType | ||
*/ | ||
public function __construct(Response $response) | ||
{ | ||
parent::__construct('@EzSystemsRepositoryForms/http/302_empty_content.html.twig'); | ||
|
||
$this->setResponse($response); | ||
$this->setControllerReference(new ControllerReference('ez_content_edit:editVersionDraftSuccessAction')); | ||
} | ||
} |