Hide survey alias field in backend

This commit is contained in:
Jürgen Mummert
2026-05-24 16:20:04 +02:00
parent b8475e3a57
commit 633fbd2ad9
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ $GLOBALS['TL_DCA']['tl_survey'] = [
], ],
], ],
'palettes' => [ 'palettes' => [
'default' => '{title_legend},title,alias,category,description;{assignment_legend},assignedMembers;{publishing_legend},published,isLocked;{meta_legend},createdAt,updatedAt', 'default' => '{title_legend},title,category,description;{assignment_legend},assignedMembers;{publishing_legend},published,isLocked;{meta_legend},createdAt,updatedAt',
], ],
'fields' => [ 'fields' => [
'id' => [ 'id' => [
+2
View File
@@ -315,8 +315,10 @@ final class SurveyDcaListener
$createdAt = (int) $survey->createdAt; $createdAt = (int) $survey->createdAt;
$updatedAt = (int) $survey->updatedAt; $updatedAt = (int) $survey->updatedAt;
$tstamp = (int) $survey->tstamp; $tstamp = (int) $survey->tstamp;
$alias = $this->surveyRepository->ensurePublicAlias((string) $survey->alias, $surveyId);
$this->connection->update('tl_survey', [ $this->connection->update('tl_survey', [
'alias' => $alias,
'createdAt' => $createdAt > 0 ? $createdAt : ($updatedAt > 0 ? $updatedAt : ($tstamp > 0 ? $tstamp : $now)), 'createdAt' => $createdAt > 0 ? $createdAt : ($updatedAt > 0 ? $updatedAt : ($tstamp > 0 ? $tstamp : $now)),
'updatedAt' => $updatedAt > 0 ? $updatedAt : $now, 'updatedAt' => $updatedAt > 0 ? $updatedAt : $now,
], [ ], [