Skip to content

Commit 3f0e869

Browse files
committed
Move the response conditions to the advanced mode
1 parent b0c43e4 commit 3f0e869

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

contao/dca/tl_url_rewrite.php

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -59,18 +59,10 @@
5959

6060
// Palettes
6161
'palettes' => [
62-
'__selector__' => ['type', 'responseCode'],
62+
'__selector__' => ['type'],
6363
'default' => '{name_legend},name,type,priority,comment,inactive',
64-
'basic' => '{name_legend},name,type,priority,comment,inactive;{request_legend},requestHosts,requestPath,requestRequirements;{response_legend},responseCode;{examples_legend},examples',
65-
'expert' => '{name_legend},name,type,priority,comment,inactive;{request_legend},requestHosts,requestPath,requestCondition;{response_legend},responseCode;{examples_legend},examples',
66-
],
67-
68-
// Subpalettes
69-
'subpalettes' => [
70-
'responseCode_301' => 'conditionalResponseUri,responseUri,keepQueryParams',
71-
'responseCode_302' => 'conditionalResponseUri,responseUri,keepQueryParams',
72-
'responseCode_303' => 'conditionalResponseUri,responseUri,keepQueryParams',
73-
'responseCode_307' => 'conditionalResponseUri,responseUri,keepQueryParams',
64+
'basic' => '{name_legend},name,type,priority,comment,inactive;{request_legend},requestHosts,requestPath,requestRequirements;{response_legend},responseCode,responseUri,keepQueryParams;{examples_legend},examples',
65+
'expert' => '{name_legend},name,type,priority,comment,inactive;{request_legend},requestHosts,requestPath,requestCondition;{response_legend},responseCode,conditionalResponseUri,responseUri,keepQueryParams;{examples_legend},examples',
7466
],
7567

7668
// Fields
@@ -165,7 +157,7 @@
165157
'flag' => DataContainer::SORT_ASC,
166158
'inputType' => 'select',
167159
'options_callback' => ['terminal42_url_rewrite.listener.rewrite_container', 'getResponseCodes'],
168-
'eval' => ['submitOnChange' => true, 'tl_class' => 'w50'],
160+
'eval' => ['tl_class' => 'w50'],
169161
'sql' => ['type' => 'integer', 'unsigned' => true],
170162
],
171163
'conditionalResponseUri' => [

0 commit comments

Comments
 (0)