[BUGFIX] Hide "Create ..." buttons, if maxitems is reached 57/40257/7
authorJonathan IROULIN <joniroutypo3@gmail.com>
Mon, 15 Jun 2015 15:54:29 +0000 (17:54 +0200)
committerBenjamin Mack <benni@typo3.org>
Wed, 17 Jun 2015 18:26:24 +0000 (20:26 +0200)
commit9d83190cd607d653947303b35523bc7ef0d24e4e
tree4de54ca015f0660e85cad3a933bf233d0259b960
parent91a5b9ae152d21cb071b2a103761d02154e9c156
[BUGFIX] Hide "Create ..." buttons, if maxitems is reached

This patch hide "Creation relation", "Create new ..." and
"Select & Upload" button when the edit form is generated if there
is a maxitems limit in the TCA. The buttons are not immediately
hidden/shown if the number of relation changes. That would involve
JavaScript magic and could be done in a follow up.

Resolves: #45125
Releases: master
Change-Id: I725aee28568c67dfc3b2feebb62d39ec5432d149
Reviewed-on: http://review.typo3.org/40257
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Jan Helke <typo3@helke.de>
Tested-by: Jan Helke <typo3@helke.de>
Reviewed-by: Benjamin Mack <benni@typo3.org>
Tested-by: Benjamin Mack <benni@typo3.org>
typo3/sysext/backend/Classes/Form/Container/InlineControlContainer.php
typo3/sysext/backend/Resources/Public/JavaScript/DragUploader.js
typo3/sysext/backend/Resources/Public/JavaScript/jsfunc.inline.js