From 829327d12cfff767cbb7e001b09d853c000f6582 Mon Sep 17 00:00:00 2001
From: TYPO3 FAL Team <typo3v4@typo3.org>
Date: Sat, 25 Feb 2012 22:46:05 +0100
Subject: [PATCH] [FEATURE] IRRE - Possibility to avoid rendering of
 foreign_selector

Introduce TCE column configuration
appearance/showPossibleRecordsSelector for type inline

Change-Id: Ia523f3a9d456c2cfcbc280f249f526dc5bbf1115
Resolves: #34282
Releases: 4.7
Reviewed-on: http://review.typo3.org/9206
Reviewed-by: Tolleiv Nietsch
Tested-by: Tolleiv Nietsch
Reviewed-by: Ingmar Schlecht
Tested-by: Ingmar Schlecht
Reviewed-by: Xavier Perseguers
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
---
 t3lib/class.t3lib_tceforms_inline.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/t3lib/class.t3lib_tceforms_inline.php b/t3lib/class.t3lib_tceforms_inline.php
index 67b1d664d78b..2c949dbbc365 100644
--- a/t3lib/class.t3lib_tceforms_inline.php
+++ b/t3lib/class.t3lib_tceforms_inline.php
@@ -214,7 +214,7 @@ class t3lib_TCEforms_inline {
 		}
 
 			// if it's required to select from possible child records (reusable children), add a selector box
-		if ($config['foreign_selector']) {
+		if ($config['foreign_selector'] && $config['appearance']['showPossibleRecordsSelector'] !== FALSE) {
 				// if not already set by the foreign_unique, set the possibleRecords here and the uniqueIds to an empty array
 			if (!$config['foreign_unique']) {
 				$possibleRecords = $this->getPossibleRecords($table, $field, $row, $config);
-- 
GitLab