Bug #84138

Repetitive creation of content elements via wizard not possible anymore

Added by Andreas Fernandez over 1 year ago. Updated 12 months ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
Start date:
2018-03-05
Due date:
% Done:

100%

TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
no-brainer
Is Regression:
Yes
Sprint Focus:

Description

Since the migration of modals to TypeScript, the repetitive creation of content elements is not possible anymore.

Steps to reproduce:
  1. Reload backend
  2. Open Page module
  3. Open any page
  4. Create a new content element via the "+ Content" button
  5. Choose any content element
  6. Save and close
  7. Create a new content element via the "+ Content" button
  8. Choose any content element
  9. Uncaught TypeError: Cannot set property 'value' of undefined at HTMLAnchorElement.onclick

Side-effect is that the tabs in the modal also don't work anymore.


Related issues

Related to TYPO3 Core - Task #82596: EXT:backend Modal.js Closed 2017-09-28

Associated revisions

Revision b3ef7c69 (diff)
Added by Andreas Fernandez over 1 year ago

[BUGFIX] Access trigger element in modal correctly

$(this) does not work in TypeScript, as this is bound to the class or the
method, but never to the element. Thus, the target element is fetched
from the event.

Resolves: #84138
Releases: master
Change-Id: I05545d19f5cb10adc3678fa81d81e3b181047bc4
Reviewed-on: https://review.typo3.org/56007
Reviewed-by: Mathias Schreiber <>
Tested-by: Mathias Schreiber <>
Tested-by: TYPO3com <>
Reviewed-by: Wouter Wolters <>
Reviewed-by: Tobi Kretschmann <>
Reviewed-by: Christian Kuhn <>
Tested-by: Christian Kuhn <>

History

#1 Updated by Andreas Fernandez over 1 year ago

#2 Updated by Gerrit Code Review over 1 year ago

  • Status changed from Accepted 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/56007

#3 Updated by Oliver Hader over 1 year ago

  • Target version set to 9.2

#4 Updated by Andreas Fernandez over 1 year ago

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

#5 Updated by Benni Mack 12 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF