Project

General

Profile

Actions

Feature #87321

closed

Edit Record: New Button cannot be disabled for Editors

Added by Benny Schimmer over 5 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2019-01-03
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

There is no option anymore in TYPO3 9 LTS to disable the "new" Button when editing records.

In TYPO3 8 there was the option to disable it using tsconfig: options.saveDocNew.my_table = 0.
The Delete Button can be disabled in v9 using options.disableDelete.my_table = 1

In v9 there is a new "New" Button which cannot be disabled for editors using tsconfig.
It is registered in backend/Classes/EditDocumentController->registerNewButtonToButtonBar.

My Scenario:
I want a master editor to be able to create specific records, but normal editors should only be able to edit existing records, not add new records.
In Listview this can be configured vi mod.web_list.allowedNewTables, but in the edit record view its still possible to add new records.
My records have IRRE-Records inside, and if the Editor adds a lot of IRRE-Records, the "Add new Record" Link is out of his view port, so they oftne accidently lick the "new" Button on top, which creates a new record instead of a new IRRE-Record.

I would suggest to add an tsconfig Option similar to the delete Button (options.disableNew.my_table = 1).*


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #87129: userTsConfig - options.saveDocNew is not respected in new top buttonsClosed2018-12-11

Actions
Related to TYPO3 Core - Bug #92788: Cannot remove the "New" button in EditDocumentControllerClosed2020-11-07

Actions
Actions #1

Updated by Gerrit Code Review over 4 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61493

Actions #2

Updated by Gerrit Code Review over 4 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61493

Actions #3

Updated by Gerrit Code Review over 4 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61493

Actions #4

Updated by Gerrit Code Review over 4 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61493

Actions #5

Updated by Riccardo De Contardi over 4 years ago

  • Related to Bug #87129: userTsConfig - options.saveDocNew is not respected in new top buttons added
Actions #6

Updated by Martin Weymayer about 4 years ago

Anyone an idea when this feature will be core function? would also need it!

Actions #7

Updated by Susanne Moog about 4 years ago

  • Tracker changed from Bug to Feature

Martin Weymayer wrote:

Anyone an idea when this feature will be core function? would also need it!

As this has been classified as a feature (see also the corresponding review link), we are currently having feature freeze (no new features allowed) for version 10 and the patch is not done, it will not happen before TYPO3 v11 as a core function. Anyone interested is welcome to help finalize and test the patch.

Actions #8

Updated by Andreas Kiessling over 3 years ago

Hi,

i think this issue wants to deal with two different "bugs":
a) the new link for records in the EditDocumentController can not be disabled
b) the UI to create new inline records needs an option to insert new records in the top or have a better "something is happening" visualization

a is IMHO a bug, the functionality to disable the "new" button was obviously removed during some refactoring. We also don't really have a "Save and new" button anymore, although the documentation states otherwise https://docs.typo3.org/m/typo3/reference-tsconfig/10.4/en-us/UserTsconfig/Options.html?highlight=disabledelet#savedocnew

As for b: yeah, we should finally tackle this https://forge.typo3.org/issues/24019

Actions #9

Updated by Simon Gilli over 3 years ago

  • Related to Bug #92788: Cannot remove the "New" button in EditDocumentController added
Actions #10

Updated by Gerrit Code Review over 3 years ago

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/66559

Actions #11

Updated by Gerrit Code Review over 3 years ago

Patch set 1 for branch 10.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/66578

Actions #12

Updated by Gerrit Code Review over 3 years ago

Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/66579

Actions #13

Updated by Xavier Perseguers over 3 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #14

Updated by Benni Mack over 3 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF