[TASK] Only show filemount path selection when storage is selected 89/47789/4
authorFrans Saris <franssaris@gmail.com>
Tue, 19 Apr 2016 14:41:19 +0000 (16:41 +0200)
committerPhilipp Gampe <philipp.gampe@typo3.org>
Wed, 20 Apr 2016 19:49:47 +0000 (21:49 +0200)
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>
typo3/sysext/core/Configuration/TCA/sys_filemounts.php

index c3a63da..6e36627 100644 (file)
@@ -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',