Issue Bug Closed

#86102Disable OR Enable button "view" while creating new tt_content record

Stefan Froemken 09/03/18, 09:48 updated 10/15/21, 10:19

Description

Hello Core-Team,

edit an existing tt_content-record. Click button “New” at top. An empty form appears. At top you will see button “View”. Press “New” again. Empty form appears, but button “View” is gone.

Stefan

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

History 5

  1. Guido Schmechel commented 09/05/18, 22:08

    Problem maybe in typo3/sysext/backend/Classes/Controller/EditDocumentController.php makeEditForm()

    At the second click there is no valid “$this->editconf”

    First “New click”

    http://master.local/typo3/index.php?route=%2Frecord%2Fedit&token=ec7678932fc73717cb55ad6f42af36f455a06234&edit[tt_content][217]=edit&returnUrl=%2Ftypo3%2Findex.php%3Froute%3D%252Fweb%252Flayout%252F%26token%3Db0fdfef7c39ed7c3e0f12ba16b4da2a37ecfa6cb%26id%3D55%23element-tt_content-217

    Second “New click”

    http://master.local/typo3/index.php?route=%2Frecord%2Fedit&token=ec7678932fc73717cb55ad6f42af36f455a06234&edit[tt_content][-217]=new&returnUrl=%2Ftypo3%2Findex.php%3Froute%3D%252Fweb%252Flayout%252F%26token%3Db0fdfef7c39ed7c3e0f12ba16b4da2a37ecfa6cb%26id%3D55%23element-tt_content-217

    The difference is between the vanillaUid (217 and -217)

  2. Susanne Moog changed target version 09/06/18, 14:20

  3. Riccardo De Contardi commented 09/08/18, 12:07

    I would suggest to remove the view button until the record has been saved (or disable it)

  4. Oliver Bartsch commented and changed status New Needs Feedback 10/13/21, 20:33

    Hi, this seems to be resolved with #87721. Since then, the “new” button is not rendered until the new element got saved. Therefore, it’s not possible anymore to click => new => new => view.

    Could you please check, if this is resolved for you?

  5. Stefan Froemken commented and changed status Needs Feedback Closed 10/15/21, 10:19

    Yes, it is solved.