[TYPO3-core] RFC: #10897: typo3/db_new.php prompts to create records in hidden, static and readonly tables

Steffen Kamper info at sk-typo3.de
Wed Oct 14 21:37:09 CEST 2009


Hi,

This is SVN patch request.

Type: Bugfix

Branches: trunk

BT reference: http://bugs.typo3.org/view.php?id=10897

If a table is marked as hidden or static or readonly, new record wizard 
(typo3/db_new.php) still prompts to create an entry there. Such tables 
should not be visible in the new record wizard at all.

Example setup for the table:

$TCA['tx_rsaauth_keys'] = array (
     'ctrl' => array (
         'adminOnly' => true,
         'hideTable' => true,
         'is_static' => true,
         'label' => 'uid',
         'readOnly' => true,
         'rootLevel' => 1,
         'title' => 'Hidden, static and read-only table'
     ),
     'columns' => array(
     ),
     'types' => array(
         '0' => array(
             'showitem' => ''
         )
     )
);

Solution:
respect $TCA[$table]['ctrl']['isAdmin'], 
$TCA[$table]['ctrl']['readOnly'], $TCA[$table]['ctrl']['hideTable'] and 
$TCA[$table]['ctrl']['is_static']

vg Steffen

vg Steffen
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 10897.diff
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20091014/770a5039/attachment.txt 


More information about the TYPO3-team-core mailing list