From 916e2b35f3ffc7a79280040e87f224438ec52e68 Mon Sep 17 00:00:00 2001 From: Frans Saris <franssaris@gmail.com> Date: Tue, 19 Apr 2016 16:41:19 +0200 Subject: [PATCH] [TASK] Only show filemount path selection when storage is selected Change-Id: I2f02204f9c6169347bf0996a293345460dd3f737 Resolves: #75788 Releases: master Reviewed-on: https://review.typo3.org/47789 Reviewed-by: Susanne Moog <typo3@susannemoog.de> Tested-by: Susanne Moog <typo3@susannemoog.de> Reviewed-by: Philipp Gampe <philipp.gampe@typo3.org> Tested-by: Philipp Gampe <philipp.gampe@typo3.org> --- .../sysext/core/Configuration/TCA/sys_filemounts.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/typo3/sysext/core/Configuration/TCA/sys_filemounts.php b/typo3/sysext/core/Configuration/TCA/sys_filemounts.php index c3a63da4a18b..6e366271b2b1 100644 --- a/typo3/sysext/core/Configuration/TCA/sys_filemounts.php +++ b/typo3/sysext/core/Configuration/TCA/sys_filemounts.php @@ -9,6 +9,7 @@ return array( 'title' => 'LLL:EXT:lang/locallang_tca.xlf:sys_filemounts', 'adminOnly' => 1, 'rootLevel' => 1, + 'requestUpdate' => 'base', 'delete' => 'deleted', 'enablecolumns' => array( 'disabled' => 'hidden' @@ -54,12 +55,21 @@ return array( 'type' => 'select', 'renderType' => 'selectSingle', 'foreign_table' => 'sys_file_storage', + 'allowNonIdValues' => true, + 'items' => array( + array('', 0) + ), 'size' => 1, - 'maxitems' => 1 + 'maxitems' => 1, + 'eval' => 'required', + 'range' => array( + 'lower' => 1, + ) ) ), 'path' => array( 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.folder', + 'displayCond' => 'FIELD:base:>:0', 'config' => array( 'type' => 'select', 'renderType' => 'selectSingle', -- GitLab