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

Inhaltselemente duplizieren erzeugt Fehlermeldung #1845

Closed
hjotto opened this issue Jun 18, 2020 · 8 comments
Closed

Inhaltselemente duplizieren erzeugt Fehlermeldung #1845

hjotto opened this issue Jun 18, 2020 · 8 comments

Comments

@hjotto
Copy link

hjotto commented Jun 18, 2020

Contao 4.9.3

Description

Fehler trat in eigener Installation und auf https://demo.contao.org auf.

Beim Duplizieren eines Inhaltelements vom Typ "Inhaltselement" (Include-Elemente > Inhaltselement) und dem gleichzeitigen ändern des "Bezogenes Inhaltselement" ohne Zwischenschritt "Speichern" erfolgt beim abschließenden Speichern eine Fehlermeldung. Das neue "Bezogenes Inhaltselement" muss von einer anderen Seite innerhalb des Artikelbaums kommen.
Wird das Duplizierte Inhaltselement erst gespeichert und dann wieder aufgerufen und geändert kommt keine Fehlermeldung.
Ist das neue "Bezogenes Inhaltselement" von der gleichen Seite erfolgt keine Fehlermeldung.

Fehlermeldung

Forbidden
Was ist das Problem?
Cannot load record "tl_content.id=330".

Schritte auf dem Onlinedemo

An Onlinedemo anmelden
Inhalte > Artikel
Seite: Home - Artikel Home [Hauptspalte] bearbeiten
Neu > Include-Elemente - Inhaltselement
Bezogenes Inhaltselement : About this demo ID 1 wählen
Speichern und schließen
Erzeugtes Inhaltselement duplizieren
Bezogenes Inhaltselement ändern: Learn more ID 46 wählen
Speichern und schließen
ok
Erzeugtes Inhaltselement duplizieren
Seite: Home - Artikel Home Right [Hauptspalte]
Bezogenes Inhaltselement ändern: Back end Login ID 47 wählen
Speichern und schließen
Fehler

Forbidden
Was ist das Problem?
Cannot load record "tl_content.id=330".

Seite zurück
Speichern
Fehler
Seite zurück
Inhalte > Artikel
Seite: Home - Artikel Home [Hauptspalte] bearbeiten
Inhaltselement ID 330 wird nicht angezeigt

System > System-Log

ID 38: A new entry "tl_content.id=330" has been created by duplicating record "tl_content.id=329" (parent records: tl_article.id=1, tl_page.id=2)
ID 41: A record with the ID "330" does not exist in table "tl_content"

@leofeyer leofeyer added the bug label Jun 25, 2020
@leofeyer leofeyer added this to the 4.9 milestone Jun 25, 2020
@leofeyer leofeyer changed the title Contao 4.9: Inhaltselemente duplizieren erzeugt Fehlermeldung Inhaltselemente duplizieren erzeugt Fehlermeldung Aug 4, 2020
@leofeyer
Copy link
Member

leofeyer commented Aug 7, 2020

Ich konnte die Schritte anhand Deiner sehr guten Anleitung nachvollziehen, allerdings ist der Fehler bei mir nicht aufgetreten. Kannst Du das Problem in der Online-Demo reproduzieren?

@hjotto
Copy link
Author

hjotto commented Aug 10, 2020

Hallo Leo,
ich habe eine Videoaufzeichnung von dem Fehler in der Online-Demo gemacht.
Unter dem Link https://1drv.ms/v/s!Ao32NkNStjqMkFzDy4htAO_Wlz2X?e=p6WP22 findest du die Mp4-Datei.

@ausi
Copy link
Member

ausi commented Aug 10, 2020

Ich vermute das Problem liegt an der DC_Table::reviseTable()-Methode. Eventuell sollten wir dort prüfen ob wir uns in einem Picker befinden und in diesem Fall die Methode nicht ausführen?

@aschempp
Copy link
Member

Ich vermute das Problem liegt an der DC_Table::reviseTable()-Methode. Eventuell sollten wir dort prüfen ob wir uns in einem Picker befinden und in diesem Fall die Methode nicht ausführen?

Das tun wir eigentlich schon...

@stale
Copy link

stale bot commented Oct 11, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Oct 11, 2020
@leofeyer leofeyer removed the stale label Oct 13, 2020
@stale
Copy link

stale bot commented Dec 12, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Dec 12, 2020
@leofeyer leofeyer removed the stale label Dec 16, 2020
@stale
Copy link

stale bot commented Feb 14, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Feb 14, 2021
@leofeyer leofeyer removed the stale label Feb 15, 2021
@stale
Copy link

stale bot commented Apr 16, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Apr 16, 2021
@stale stale bot closed this as completed Apr 23, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants