[BUGFIX] Missing max value for title in file reference TCA 41/51941/4
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:10:32 +0000 (10:10 +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/51941
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Torben Hansen <derhansen@gmail.com>
Tested-by: Torben Hansen <derhansen@gmail.com>
Reviewed-by: Thomas Hohn <thomas@hohn.dk>
Tested-by: Thomas Hohn <thomas@hohn.dk>
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 de7eb8a..2a16b0d 100644 (file)
@@ -155,6 +155,7 @@ return [
             'config' => [
                 'type' => 'input',
                 'size' => 20,
+                'max' => 255,
                 'eval' => 'null',
                 'placeholder' => '__row|uid_local|metadata|title',
                 'mode' => 'useOrOverridePlaceholder',
index cfe5f81..50298c4 100644 (file)
@@ -409,7 +409,7 @@ CREATE TABLE sys_file_reference (
        # Local usage overlay fields
        title tinytext,
        description text,
-       alternative tinytext,
+       alternative text,
        link varchar(1024) DEFAULT '' NOT NULL,
        crop varchar(4000) DEFAULT '' NOT NULL,
        autoplay tinyint(4) DEFAULT '0' NOT NULL,