Skip to content

Commit

Permalink
[BUGFIX] Set maxlength for varchar inputs in sys_file_metadata
Browse files Browse the repository at this point in the history
Max values have been set to the input fields in the TCA of the
sys_file_metadata table. The settings have been adjusted to the
set varchar length in the ext_tables.sql file.

Additionally the language column length has been adjusted to
the other fields. The length is set from 12 to 45.

Resolves: #102456
Releases: main, 12.4
Change-Id: Id2b7d510c16b5c2659fa0a7367edeb4f49b782f2
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/82003
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: core-ci <typo3@b13.com>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
  • Loading branch information
whmyr authored and lolli42 committed Nov 29, 2023
1 parent c33f155 commit 8a36b63
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Expand Up @@ -215,6 +215,7 @@
'type' => 'input',
'size' => 20,
'eval' => 'trim',
'max' => 255,
],
],
'download_name' => [
Expand All @@ -226,6 +227,7 @@
'type' => 'input',
'size' => 30,
'eval' => 'trim',
'max' => 255,
],
],
'creator' => [
Expand All @@ -237,6 +239,7 @@
'type' => 'input',
'size' => 30,
'eval' => 'trim',
'max' => 255,
],
],
'publisher' => [
Expand All @@ -248,6 +251,7 @@
'type' => 'input',
'size' => 20,
'eval' => 'trim',
'max' => 45,
],
],
'source' => [
Expand All @@ -257,6 +261,7 @@
'type' => 'input',
'size' => 20,
'eval' => 'trim',
'max' => 255,
],
],
'copyright' => [
Expand All @@ -276,6 +281,7 @@
'type' => 'input',
'size' => 20,
'eval' => 'trim',
'max' => 45,
'behaviour' => [
'allowLanguageSynchronization' => true,
],
Expand All @@ -289,6 +295,7 @@
'type' => 'input',
'size' => 20,
'eval' => 'trim',
'max' => 45,
'behaviour' => [
'allowLanguageSynchronization' => true,
],
Expand All @@ -302,6 +309,7 @@
'type' => 'input',
'size' => 20,
'eval' => 'trim',
'max' => 45,
'behaviour' => [
'allowLanguageSynchronization' => true,
],
Expand Down Expand Up @@ -484,6 +492,7 @@
'type' => 'input',
'size' => 30,
'eval' => 'trim',
'max' => 45,
],
],
'fe_groups' => [
Expand Down
2 changes: 1 addition & 1 deletion typo3/sysext/filemetadata/ext_tables.sql
Expand Up @@ -35,7 +35,7 @@ CREATE TABLE sys_file_metadata (

# TEXT + AUDIO + VIDEO
# correspond to the language of the document
language varchar(12) DEFAULT '',
language varchar(45) DEFAULT '',

# FE permissions
fe_groups tinytext
Expand Down

0 comments on commit 8a36b63

Please sign in to comment.