[BUGFIX] Add maxitems for field "metadata" in TCA 12/27112/2
authorFabien Udriot <fabien.udriot@ecodev.ch>
Wed, 29 Jan 2014 06:20:39 +0000 (10:20 +0400)
committerErnesto Baschny <ernst@cron-it.de>
Sun, 2 Feb 2014 11:22:55 +0000 (12:22 +0100)
Value "maxitems" => 1 must be added to field
`metadata` since it has a one-to-one relation.

Change-Id: Ie8771809b952e3b2aa441fcb222a6a3db301655e
Releases: 6.2
Resolves: #55411
Reviewed-on: https://review.typo3.org/27112
Reviewed-by: Wouter Wolters
Reviewed-by: Xavier Perseguers
Reviewed-by: Frans Saris
Reviewed-by: Stefan Froemken
Reviewed-by: Ingo Schmitt
Reviewed-by: Ernesto Baschny
Tested-by: Ernesto Baschny
typo3/sysext/core/Configuration/TCA/sys_file.php

index 69a431c..b00cb04 100644 (file)
@@ -133,7 +133,8 @@ return array(
                                'foreign_table' => 'sys_file_metadata',
                                'foreign_field' => 'file',
                                'size' => 1,
-                               'minitems' => 1
+                               'minitems' => 1,
+                               'maxitems' => 1,
                        )
                )
        ),