Project

General

Profile

Actions

Bug #92382

closed

levelLinksPosition=bottom is not working correctly especially with minitems=1 set and leads to misbehaviour in inline children

Added by Christian Buelter about 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2020-09-23
Due date:
% Done:

0%

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

Description

If record has inline elements with a "maxitems" value configured and the number of elements already assigned is "maxitems" - 1, the buttons "Add image" and "Select & upload files" are missing for the last added element. If "maxitems" is set to "1", the problem is already visible when adding one inline element.

The button does appear after saving the parent element though.

Expected behaviour

The buttons "Add image" and "Select & upload files" should appear right away when an inline element is added, even if "maxitems" is set to 1, or the number of already assigned element is maxitems-1.

Steps to reproduce (using EXT:news as an example)

1. Install EXT:news

2. Set the following PageTS

TCEFORM.tx_news_domain_model_news.content_elements.config.maxitems = 1
TCAdefaults.tt_content.CType = image

3. Add a content element in tab "Content elements" of the news record. A new content element of type "image" appears, but the "Add image" and "Select & upload files" are missing.

Tested in TYPO3 10.4.8 and news 8.4.0


Files

Auswahl_040.png (51.7 KB) Auswahl_040.png Christian Buelter, 2020-09-24 11:52

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #91808: Nested IRRE with maxitems hides last inline control button / toggles inline control buttons wrongClosed2020-07-16

Actions
Related to TYPO3 Core - Bug #97786: Wrong button hidden in nested inline relationsClosed2022-06-17

Actions
Actions #1

Updated by Christian Buelter about 4 years ago

  • Description updated (diff)
Actions #2

Updated by Christian Buelter about 4 years ago

  • Subject changed from Button "Add image" is missing for inline (IRRE) elements if "maxitems" is configured to Button "Add image" is missing for last inline (IRRE) element if "maxitems" is configured
Actions #3

Updated by Christian Buelter about 4 years ago

  • Related to Bug #91808: Nested IRRE with maxitems hides last inline control button / toggles inline control buttons wrong added
Actions #4

Updated by Christian Buelter about 4 years ago

Note: Applying patch provided in https://forge.typo3.org/issues/91808 did not fix the problem.

Actions #5

Updated by Oliver Bartsch about 4 years ago

  • Status changed from New to Accepted

Can confirm this is not fixed with #91808.

Actions #6

Updated by Oliver Bartsch about 4 years ago

  • Subject changed from Button "Add image" is missing for last inline (IRRE) element if "maxitems" is configured to levelLinksPosition=bottom is not working correctly especially with minitems=1 set and leads to misbehaviour in inline children

I investigated that even further and it seems the reason is the combination of ['config']['maxitems'] = 1 and ['config']['appearance']['levelLinksPosition'] = 'bottom'.

If you change one of these, the inline-controls for FAL are displayed correctly.

However there seems to be a general misbehaviour as in my tests the newRecordLink button of the parent inline element (in this case content_elements) is not hidden after the first element is created. And does also not show up again after removing one. This is partly also the case if maxitems > 1.

I added a test case to EXT:styleguide ( https://github.com/TYPO3/styleguide/pull/162) to reproduce the behaviour and changed the issue title accordingly.

Actions #7

Updated by Oliver Bartsch over 3 years ago

  • Status changed from Accepted to Needs Feedback

Hi, looks like this was already fixed in the meantime. Could you please verify, if this bug still exists for you?

Actions #8

Updated by Christian Kuhn over 3 years ago

  • Status changed from Needs Feedback to Closed

Seems to work now. Closing.
Please feel free to create a new issue in case we missed something.

Actions #9

Updated by Nikita Hovratov over 2 years ago

  • Related to Bug #97786: Wrong button hidden in nested inline relations added
Actions

Also available in: Atom PDF