Issue Bug Closed

#17073Marker ###REC_FIELD_[fieldname]### in TCA config of select type does not work with groups

Nyffenegger David 03/03/07, 23:28 updated 04/01/20, 21:14

Description

If you use the marker ###REC_FIELD_[fieldname]### in the “foreign_table_where” of the “config” part of a field, it doesn’t work if the referenced fieldname is defined as type “group”.
Within the t3lib_BEfunc::exec_foreign_table_where_query function, the marker is replaced with $TSconfig[‘_THIS_ROW’][fieldname] which does not contain only the database field value but some other information like the displayed text and the database name.

The marker replacement works perfectly, if the refered field is of type select, becaue the $TSconfig[‘_THIS_ROW’][fieldname] returns in this case the database value of this field.

(issue imported from #M5124)

Reviews 2