Project

General

Profile

Actions

Bug #64189

closed

Bug with displayCond in TCA in draft mode

Added by Mohamed Rebai almost 10 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2015-01-08
Due date:
% Done:

0%

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

Description

Hi,

This bug is a little bit complicated to explain (and sorry in advance for my poor english)

I created with extension builder and extension, with two tables. Table 1 is persons, table 2 is events. One person can have many events, so in the form of an event record, i can choose a person record.
In the event record form, i have a lot of fields, there is a checkbox, that when changed, the form reload and display other fields. To do that i use displayCond in the TCA definition.

Now here is two scenarios, in the first everything is ok, in the second there is a problem.

1st scenario :

- I create a new event record
- I choose a person record for the event
- I change the value of the checkbox, i got the alert "this change will affect which fields ..." and new fields are displayed and other are hidden
- I enter values for the other fields
- Save and close

In this scenario, when i see the frontend in draft mode, i can see the event i just created in single view of the person (there is a section : List of events for the displayed person)

Second scenario :

- I create a new event record
- I change the value of the checkbox, i got the alert "this change will affect which fields ..." and new fields are displayed and other are hidden
- I choose a person record for the event
- I enter values for the other fields
- Save and close

(notice, this time i clicked the checkbox before choosing the person)

Now with this scenario, in the frontend in draft mode, i can't see the record i just created! I tried to update the record again and again, nothing to do the record is never displayed in draft mode.

In the events table, i see two records for the event i just created, the first has the good pid, but nothing in the person field. The second containing the the values i entered after the change of the form when clicked on the checkbox, and the pid for this record is -1. And everytime i make changes in the form, only the second record (with pid -1) is updated.

Can you please fix this issue ?

Thanks.

Actions #1

Updated by Mohamed Rebai almost 10 years ago

Hello ?

Actions #2

Updated by Benni Mack over 9 years ago

  • Status changed from New to Needs Feedback

Hey, thanks for your detailled explanation.

Can you explain to me what you mean with "draft mode" in frontend?

All the best,
Benni.

Actions #3

Updated by Mohamed Rebai over 9 years ago

Hi,

I mean, when you select a draft workspace in the backend, and go see the frontend (so you see the draft state of the records, and not the live state)

Is it clearer now ?

Thanks a lot.

Actions #4

Updated by Riccardo De Contardi about 9 years ago

  • Status changed from Needs Feedback to New
Actions #5

Updated by Riccardo De Contardi about 7 years ago

  • Status changed from New to Needs Feedback

First of all, we really apologize for this much too late answer.

Could you please tell us, if you managed to make it work in some of the recent and still supported versions of TYPO3?

If you can share your extension, that could be useful for testing.

If you still need help consider also (if not already done) joining the TYPO3 slack channel (https://forger.typo3.org/slack)

Thank you and sorry again

Actions #6

Updated by Riccardo De Contardi almost 7 years ago

  • Status changed from Needs Feedback to Closed

90 days without feedback -> closing it.

If you think that this is the wrong decision or experience the issue again or have more information about how to reproduce it, please reopen it or open a new issue with a reference to this one. Thank you.

Actions

Also available in: Atom PDF