Skip to content
Snippets Groups Projects
Commit 2ba3c93a authored by Jochen Roth's avatar Jochen Roth Committed by Christian Kuhn
Browse files

[BUGFIX] Include hidden task groups in select

Hidden task groups are not shown in the dropdown
when editing a task. When a task was saved the
selected (hidden) group is lost.

This has been fixed by extending the query to
include hidden groups.

Resolves: #99855
Releases: main, 11.5
Change-Id: I8bd94fd3dfad4d0c19e08e8f91904ec2c2f32367
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/77803


Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarcore-ci <typo3@b13.com>
parent 86c56600
Branches
Tags
No related merge requests found
......@@ -27,6 +27,7 @@ use TYPO3\CMS\Backend\Utility\BackendUtility;
use TYPO3\CMS\Core\Authentication\BackendUserAuthentication;
use TYPO3\CMS\Core\Core\Environment;
use TYPO3\CMS\Core\Database\ConnectionPool;
use TYPO3\CMS\Core\Database\Query\Restriction\HiddenRestriction;
use TYPO3\CMS\Core\Http\HtmlResponse;
use TYPO3\CMS\Core\Imaging\Icon;
use TYPO3\CMS\Core\Imaging\IconFactory;
......@@ -1321,6 +1322,7 @@ class SchedulerModuleController
{
$queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)
->getQueryBuilderForTable('tx_scheduler_task_group');
$queryBuilder->getRestrictions()->removeByType(HiddenRestriction::class);
return $queryBuilder
->select('*')
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment