[TYPO3-core] FYI72 #16280: Field size for "shortcut" is 3, although maxitems is 1

Steffen Gebert steffen at steffen-gebert.de
Sat Nov 6 20:23:37 CET 2010


The following changes will be committed in 72h if nobody objects.

Type: Bugfix

Bugtracker reference:
http://bugs.typo3.org/view.php?id=16280

Branches:
trunk

Problem:
Field "shortcut" (to define target page of a shortcut) has size 3, 
although maxitems is defined to 1. This leads editors to the assumption 
that more pages can be added (which results in an exclamation mark).

$TCA['pages']['shortcut'] => array(
     'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.shortcut_page',
     'config' => array(
         'type' => 'group',
         'internal_type' => 'db',
         'allowed' => 'pages',
         'size' => '3',
         'maxitems' => '1',
         'minitems' => '0'

Solution:
set 'size' => 1

Kind regards
Steffen

-- 
Steffen Gebert
TYPO3 Core Team Member
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 16280.diff
Type: text/x-diff
Size: 408 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101106/39b79178/attachment-0001.diff>


More information about the TYPO3-team-core mailing list