Feature #87321

Edit Record: New Button cannot be disabled for Editors

Added by Benny Schimmer over 2 years ago. Updated 7 months 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

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
#1

Updated by Gerrit Code Review almost 2 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

#2

Updated by Gerrit Code Review almost 2 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

#3

Updated by Gerrit Code Review almost 2 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

#4

Updated by Gerrit Code Review almost 2 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

#5

Updated by Riccardo De Contardi almost 2 years ago

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

Updated by Martin Weymayer over 1 year ago

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

#7

Updated by Susanne Moog over 1 year 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.

#8

Updated by Andreas Kiessling 11 months 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

#9

Updated by Simon Gilli 9 months ago

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

Updated by Gerrit Code Review 9 months 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

#11

Updated by Gerrit Code Review 9 months 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

#12

Updated by Gerrit Code Review 9 months 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

#13

Updated by Xavier Perseguers 9 months ago

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

Updated by Benni Mack 7 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF