direct_mail icon indicating copy to clipboard operation
direct_mail copied to clipboard

Inserting dmailer_boundaries fails

Open herbertsojnik opened this issue 1 year ago • 0 comments

The userFunc for wrapping comments around content element fails with: Call to undefined method TYPO3\CMS\Core\Database\Query\QueryBuilder::fetchAllAssociative() in /var/www/html/app/web/typo3conf/ext/direct_mail/Classes/Repository/SysDmailCategoryRepository.php line 56

The problem is in public function selectSysDmailCategoryForContainer(int $uid)

Wrong code:

     ...
      ->orderBy($orderBy)            
      ->fetchAllAssociative();

This is the correct code that solves the problem for me:

     ...
      ->orderBy($orderBy)            
      ->executeQuery()
      ->fetchAllAssociative();

herbertsojnik avatar Jul 10 '23 11:07 herbertsojnik