Project

General

Profile

Actions

Bug #94151

closed

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

Added by K Ch over 3 years ago. Updated over 3 years 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

Actions #1

Updated by K Ch over 3 years 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.

Actions #2

Updated by Andreas Kienast over 3 years 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

Actions #3

Updated by K Ch over 3 years 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

Actions #4

Updated by Riccardo De Contardi over 3 years ago

@K Ch

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

Actions #5

Updated by K Ch over 3 years 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

Actions #6

Updated by Riccardo De Contardi over 3 years ago

  • Status changed from Needs Feedback to Closed

Closed in agreement with the reporter.

Actions

Also available in: Atom PDF