Skip to content

Commit

Permalink
Merge pull request #41 from beatrycze-volk/fix-user
Browse files Browse the repository at this point in the history
[BUGFIX] Change return type in `newAction` function
  • Loading branch information
beatrycze-volk authored Oct 8, 2024
2 parents 53482b9 + d594fb5 commit 4838dbf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Classes/Controller/NewController.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
***************************************************************/

use In2code\Femanager\Utility\LocalizationUtility;
use Psr\Http\Message\ResponseInterface;
use Slub\DigasFeManagement\Domain\Model\User;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Extbase\Mvc\Exception\UnsupportedRequestTypeException;
Expand All @@ -52,16 +53,16 @@ public function initializeCreateAction()
* Render registration form
*
* @param User|\In2code\Femanager\Domain\Model\User $user
* @return void
* @return ResponseInterface
*/
public function newAction(\In2code\Femanager\Domain\Model\User $user = null)
public function newAction(\In2code\Femanager\Domain\Model\User $user = null): ResponseInterface
{
//get kitodo ID if set
$kitodoParams = GeneralUtility::_GET('tx_dlf');
$this->view->assign('kitodoParams', $kitodoParams);

$this->view->assign('currentUser', $this->user);
parent::newAction($user);
return parent::newAction($user);
}

/**
Expand Down

0 comments on commit 4838dbf

Please sign in to comment.