Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1st Button in inline_usecombination not working correctly #331

Open
2 of 3 tasks
DavidBruchmann opened this issue Jun 29, 2022 · 1 comment
Open
2 of 3 tasks

1st Button in inline_usecombination not working correctly #331

DavidBruchmann opened this issue Jun 29, 2022 · 1 comment

Comments

@DavidBruchmann
Copy link

DavidBruchmann commented Jun 29, 2022

Bug Report

Prerequisites

  • Did you reproduce the problem on TYPO3 core master?
  • Did you reproduce the problem on TYPO3 v10.4 LTS?
  • Did you reproduce the problem on TYPO3 v9.5 LTS?

Description

The example tx_styleguide_inline_usecombination has two buttons:

  1. Button 1 shall create a new record, of the child table.
  2. Button 2 shall create a relation to an existing record of the child table.

image

Both buttons work similar and depend on the situation if a child record to create a relation is available.
If there exist child records without relation a relation is created, else a new record .
So the behavior of the buttons never depends at all on their intended purpose but on the potential child records.

Steps to Reproduce

  1. Install TYPO3 with the extension styleguide.
  2. try to use the buttons like intended with and without child records that haven't a relation.

Expected behavior: [What you expected to happen]

In any case I expect that the 1st button is creating a new child record and no relation.

Actual behavior: [What actually happened]

The 1st button creates a new relation only if no more child records can be found to include in a relation.

Versions

typo3/cms-core: 11.5.x-dev f9e8cdb
typo3/cms-styleguide: 11.x-dev 57b637f

@DavidBruchmann
Copy link
Author

If there are no more records to create a relation, the second button is also creating a new relation. So that could be a feature but actually that's perhaps neither like intended.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant