Project

General

Profile

Actions

Feature #68489

open

TCA type:select foreign_table_where -> readOnly not working

Added by d.ros no-lastname-given almost 9 years ago. Updated over 6 years ago.

Status:
New
Priority:
Must have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2015-07-23
Due date:
% Done:

0%

Estimated time:
PHP Version:
5.5
Tags:
Complexity:
Sprint Focus:

Description


  1. 'foo' => array(
            'exclude' => 1,
            'label' => 'bar',
            'config' => array(
                'type' => 'select',
                'foreign_table' => 'tx_foo',
                'foreign_field' => 'tx_bar',
                'size' => 4,
                'minitems' => 0,
                'maxitems' => 20,
                            'readOnly' => 1
            )
        ),
    
    ###

Above listing gives back a list of Items in backend set to read only. Unfortunately does the query not match my case. So I set a foreign_table_where like this:

###

'foo' => array(
        'exclude' => 1,
        'label' => 'bar',
        'config' => array(
            'type' => 'select',
            'foreign_table' => 'tx_foo',
            'foreign_table_where' => 'AND FIND_IN_SET(\'###THIS_UID###\',tx_bar)',
            'size' => 4,
            'minitems' => 0,
            'maxitems' => 20,
                        'readOnly' => 1
        )
    ),
###

Now I only see an empty select field. If I remove the "readOnly" I can see the queried Items on the right side of the select boxes. But I do not want to select them individually.

I assume that this is a bug. If not it should be a new feature. I did not find any other solution to this problem.

Cheers,

david


Files

Auswahl_324.png (18.5 KB) Auswahl_324.png d.ros no-lastname-given, 2015-07-24 12:02
Auswahl_325.png (28 KB) Auswahl_325.png d.ros no-lastname-given, 2015-07-24 12:02
Auswahl_326.png (12.2 KB) Auswahl_326.png d.ros no-lastname-given, 2015-07-24 12:02
Actions

Also available in: Atom PDF