Project

General

Profile

Actions

Bug #98668

closed

elementBrowserType -> Bug in Group

Added by Harald Holzmann about 2 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2022-10-20
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.1
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

I have this Flexform-Config

<icon>
                    <TCEforms>
                      <label>Icon</label>
                      <config>
                        <type>group</type>
                        <internal_type>db</internal_type>
                        <appearance>
                          <elementBrowserType>file</elementBrowserType>
                          <elementBrowserAllowed>png,svg</elementBrowserAllowed>
                        </appearance>
                        <allowed>sys_file</allowed>
                        <fieldControl>
                          <elementBrowser>
                            <disabled>false</disabled>
                          </elementBrowser>
                        </fieldControl>
                        <size>1</size>
                        <maxitems>1</maxitems>
                        <show_thumbs>1</show_thumbs>
                      </config>
                    </TCEforms>
                  </icon>

The Browse-Dialog on the right (next to remove) works correct.

But when clicking on the Button called "File" a strange popup is opened, that has no usefull function.

The button should work as the right one.
Also make it possible to hide this button via FielControl->ElementBrowser->Disabled=False. When adding this, both buttons disappear and cannot select files anymore.

Thanks and best regards


Files


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #101144: Field type "group" with internal_type "db" seems not working with table "sys_file"Closed2023-06-22

Actions
Actions #1

Updated by Christian Kuhn about 1 year ago

  • Status changed from New to Closed

Hey.

I'm afraid this is a 'won't fix':

Relations to sys_file should be done using tca type=file, which is an inline configuration over sys_file_references.

The fact you're using type=group here is probably a workaround since type=inline and type=file are not allowed in section containers, and FormEngine throws an exception in this case. It's a bug in the core that it does not throw for type=group and type=select with MM, foreign_table or allowed as well, when nested in section containers.

The background is that section containers are an anonymous structure. Allowing relations to database entities is a misconception the core can't handle. The existing usages are so full of bugs that we're going to restrict this further. Instead, we're trying to at least allow and fix long standing open bugs with inline,group,file,select on sheet element level, which is tricky enough.

As such, I'll close here as won't fix and will try to fix some of the flex form sheet element bugs instead.

I need to ask you to not use db relation types within flex form sections. I hope that is ok.

Actions #2

Updated by Christian Kuhn about 1 year ago

  • Related to Bug #101144: Field type "group" with internal_type "db" seems not working with table "sys_file" added
Actions

Also available in: Atom PDF