[BUGFIX] Missing max value for title in file reference TCA 47/52047/2
authorTorben Hansen <derhansen@gmail.com>
Fri, 3 Mar 2017 18:35:53 +0000 (19:35 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Wed, 15 Mar 2017 09:18:09 +0000 (10:18 +0100)
Add a max value of 255 chars for the field "title" and
increase size of field "alternative" in sys_file_reference to
the same size of "parent" field sys_file_metadata in db definition.

Resolves: #80122
Releases: master, 7.6
Change-Id: I9f1e4ef57fbd56e5d6a253409186e16a58c60e2b
Reviewed-on: https://review.typo3.org/52047
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Configuration/TCA/sys_file_reference.php
typo3/sysext/core/ext_tables.sql

index c23ead2..f16f914 100644 (file)
@@ -161,6 +161,7 @@ return [
             'config' => [
                 'type' => 'input',
                 'size' => '20',
+                'max' => 255,
                 'eval' => 'null',
                 'placeholder' => '__row|uid_local|metadata|title',
                 'mode' => 'useOrOverridePlaceholder',
index acd9ca5..31c7332 100644 (file)
@@ -413,7 +413,7 @@ CREATE TABLE sys_file_reference (
        # Local usage overlay fields
        title tinytext,
        description text,
-       alternative tinytext,
+       alternative text,
        link varchar(1024) DEFAULT '' NOT NULL,
        downloadname tinytext,
        crop varchar(4000) DEFAULT '' NOT NULL,