Bug #94151

TCA setting maxitems - hidden button to create a new element when current has been removed

Added by K Ch 3 months ago. Updated 2 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend JavaScript
Target version:
-
Start date:
2021-05-18
Due date:
% Done:

0%

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

Description

Tested on TYPO3 v10.4.12

For example:
'image' => [
'config' => [
'maxitems' => 1
]
]

How to reproduce issue:
1. Create a content element (for example TextPic) and add an optional image from the file list.
2. Save content, the page should be reloaded.
3. Remove added image, a button for adding a new element (in this case image) won't appear until you save a current state.

The issue can be reproduced with any TCA field that can be optional.


Files

#1

Updated by K Ch 3 months ago

Tested on TYPO3 v10.4.12.

For example:

'image' => [
'config' => [
'maxitems' => 1
]
]

How to reproduce issue:
1. Create a content element (for example TextPic) and add an optional image from the file list.
2. Save content, the page should be reloaded.
3. Remove added image, a button for adding a new element (in this case image) won't appear until you save a current state.

Note: if minitems option is set to 1 then it's not possible to add an element or even save content.

The issue can be reproduced with any TCA field that can be optional.

#2

Updated by Andreas Fernandez 3 months ago

  • Status changed from New to Needs Feedback

Hello,

can you please check this with the most recent version 10.4.16? This issue should be solved already.

Kind regards
Andreas

#3

Updated by K Ch 2 months ago

Andreas Fernandez wrote in #note-2:

Hello,

can you please check this with the most recent version 10.4.16? This issue should be solved already.

Kind regards
Andreas

Hi Andreas,

with the newest version of Typo3 it seems to work fine :) Thank you for the answer.

Kind regards
Kacper

#4

Updated by Riccardo De Contardi 2 months ago

@K Ch

thank you for your answer; May this issue be closed or is there something missing?

#5

Updated by K Ch 2 months ago

Riccardo De Contardi wrote in #note-4:

@K Ch

thank you for your answer; May this issue be closed or is there something missing?

Hi Riccardo,
of course, this issue can be closed :)

Regards
Kacper

#6

Updated by Riccardo De Contardi 2 months ago

  • Status changed from Needs Feedback to Closed

Closed in agreement with the reporter.

Also available in: Atom PDF