Actions
Feature #68489
openTCA type:select foreign_table_where -> readOnly not working
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
'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
Actions