Hide survey alias field in backend
This commit is contained in:
@@ -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' => [
|
||||||
|
|||||||
@@ -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,
|
||||||
], [
|
], [
|
||||||
|
|||||||
Reference in New Issue
Block a user