Skip to content

Commit

Permalink
fix: fixed bad hook implementation problem
Browse files Browse the repository at this point in the history
  • Loading branch information
benjasper committed Aug 30, 2024
1 parent cb8141d commit cf0c56e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Classes/Hooks/TCEmainHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
use ITX\Jobapplications\Domain\Model\Application;
use ITX\Jobapplications\Domain\Repository\ApplicationRepository;
use ITX\Jobapplications\Service\ApplicationFileService;
use TYPO3\CMS\Core\DataHandling\DataHandler;
use TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMapper;
use TYPO3\CMS\Core\DataHandling\DataHandler;
use TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMapper;

/**
* Class TCEmainHook
Expand All @@ -23,6 +23,7 @@ class TCEmainHook

public function __construct()
{
// NOTE: This has been disabled for now, as there is no normal dependency injection available here
}

/**
Expand All @@ -38,6 +39,7 @@ public function __construct()
*/
public function processCmdmap_deleteAction($table, $uid, array $record, &$recordWasDeleted, DataHandler $dataHandler)
{
return;
if ($table === "tx_jobapplications_domain_model_application")
{
if ($record['hidden'] === 1)
Expand Down

0 comments on commit cf0c56e

Please sign in to comment.