Skip to content

Commit

Permalink
Fix the input length of the alias fields (see #1453)
Browse files Browse the repository at this point in the history
Description
-----------

The length of alias fields has been increased in #678 but it seems we forgot to increase the `minlength` of the input fields.

Commits
-------

52cf84d Fix length of tl_page.alias
771219d Increase all other alias fields
  • Loading branch information
aschempp committed Mar 2, 2020
1 parent 9feb0b1 commit 36d4dd9
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
Expand Up @@ -165,7 +165,7 @@
'exclude' => true,
'search' => true,
'inputType' => 'text',
'eval' => array('rgxp'=>'alias', 'doNotCopy'=>true, 'unique'=>true, 'maxlength'=>128, 'tl_class'=>'w50 clr'),
'eval' => array('rgxp'=>'alias', 'doNotCopy'=>true, 'unique'=>true, 'maxlength'=>255, 'tl_class'=>'w50 clr'),
'save_callback' => array
(
array('tl_calendar_events', 'generateAlias')
Expand Down
Expand Up @@ -126,7 +126,7 @@
'exclude' => true,
'search' => true,
'inputType' => 'text',
'eval' => array('mandatory'=>true, 'rgxp'=>'alias', 'unique'=>true, 'maxlength'=>128, 'tl_class'=>'w50 clr'),
'eval' => array('mandatory'=>true, 'rgxp'=>'alias', 'unique'=>true, 'maxlength'=>255, 'tl_class'=>'w50 clr'),
'save_callback' => array
(
array('tl_calendar_feed', 'checkFeedAlias')
Expand Down
2 changes: 1 addition & 1 deletion core-bundle/src/Resources/contao/dca/tl_article.php
Expand Up @@ -176,7 +176,7 @@
'exclude' => true,
'inputType' => 'text',
'search' => true,
'eval' => array('rgxp'=>'alias', 'doNotCopy'=>true, 'maxlength'=>128, 'tl_class'=>'w50 clr'),
'eval' => array('rgxp'=>'alias', 'doNotCopy'=>true, 'maxlength'=>255, 'tl_class'=>'w50 clr'),
'save_callback' => array
(
array('tl_article', 'generateAlias')
Expand Down
2 changes: 1 addition & 1 deletion core-bundle/src/Resources/contao/dca/tl_form.php
Expand Up @@ -135,7 +135,7 @@
(
'exclude' => true,
'inputType' => 'text',
'eval' => array('rgxp'=>'alias', 'doNotCopy'=>true, 'maxlength'=>128, 'tl_class'=>'w50'),
'eval' => array('rgxp'=>'alias', 'doNotCopy'=>true, 'maxlength'=>255, 'tl_class'=>'w50'),
'save_callback' => array
(
array('tl_form', 'generateAlias')
Expand Down
2 changes: 1 addition & 1 deletion core-bundle/src/Resources/contao/dca/tl_page.php
Expand Up @@ -210,7 +210,7 @@
'exclude' => true,
'search' => true,
'inputType' => 'text',
'eval' => array('rgxp'=>'folderalias', 'doNotCopy'=>true, 'maxlength'=>128, 'tl_class'=>'w50 clr'),
'eval' => array('rgxp'=>'folderalias', 'doNotCopy'=>true, 'maxlength'=>255, 'tl_class'=>'w50 clr'),
'save_callback' => array
(
array('tl_page', 'generateAlias')
Expand Down
2 changes: 1 addition & 1 deletion faq-bundle/src/Resources/contao/dca/tl_faq.php
Expand Up @@ -144,7 +144,7 @@
'exclude' => true,
'search' => true,
'inputType' => 'text',
'eval' => array('rgxp'=>'alias', 'doNotCopy'=>true, 'unique'=>true, 'maxlength'=>128, 'tl_class'=>'w50'),
'eval' => array('rgxp'=>'alias', 'doNotCopy'=>true, 'unique'=>true, 'maxlength'=>255, 'tl_class'=>'w50'),
'save_callback' => array
(
array('tl_faq', 'generateAlias')
Expand Down
2 changes: 1 addition & 1 deletion news-bundle/src/Resources/contao/dca/tl_news.php
Expand Up @@ -170,7 +170,7 @@
'exclude' => true,
'search' => true,
'inputType' => 'text',
'eval' => array('rgxp'=>'alias', 'doNotCopy'=>true, 'unique'=>true, 'maxlength'=>128, 'tl_class'=>'w50 clr'),
'eval' => array('rgxp'=>'alias', 'doNotCopy'=>true, 'unique'=>true, 'maxlength'=>255, 'tl_class'=>'w50 clr'),
'save_callback' => array
(
array('tl_news', 'generateAlias')
Expand Down
2 changes: 1 addition & 1 deletion news-bundle/src/Resources/contao/dca/tl_news_feed.php
Expand Up @@ -126,7 +126,7 @@
'exclude' => true,
'search' => true,
'inputType' => 'text',
'eval' => array('mandatory'=>true, 'rgxp'=>'alias', 'unique'=>true, 'maxlength'=>128, 'tl_class'=>'w50 clr'),
'eval' => array('mandatory'=>true, 'rgxp'=>'alias', 'unique'=>true, 'maxlength'=>255, 'tl_class'=>'w50 clr'),
'save_callback' => array
(
array('tl_news_feed', 'checkFeedAlias')
Expand Down
Expand Up @@ -132,7 +132,7 @@
'exclude' => true,
'search' => true,
'inputType' => 'text',
'eval' => array('rgxp'=>'alias', 'doNotCopy'=>true, 'unique'=>true, 'maxlength'=>128, 'tl_class'=>'w50'),
'eval' => array('rgxp'=>'alias', 'doNotCopy'=>true, 'unique'=>true, 'maxlength'=>255, 'tl_class'=>'w50'),
'save_callback' => array
(
array('tl_newsletter', 'generateAlias')
Expand Down

0 comments on commit 36d4dd9

Please sign in to comment.