From 0ab10b7e867901faa31b1279c0d7a8a7c5ef5393 Mon Sep 17 00:00:00 2001
From: Nicole Cordes <typo3@cordes.co>
Date: Fri, 24 Feb 2017 12:59:13 +0100
Subject: [PATCH] [BUGFIX] Add missing jQuery context for EM modal
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

This patch adds the modal context to be able to confirm the installation
of an incompatible extension.

Resolves: #79995
Releases: master
Change-Id: I84187076684eb1fb4ee69679f8003ec115a6bf2c
Reviewed-on: https://review.typo3.org/51826
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Jasmina Ließmann <code@frauliessmann.de>
Tested-by: Jasmina Ließmann <code@frauliessmann.de>
Reviewed-by: Helmut Hummel <typo3@helhum.io>
Tested-by: Helmut Hummel <typo3@helhum.io>
---
 .../sysext/extensionmanager/Resources/Public/JavaScript/Main.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/typo3/sysext/extensionmanager/Resources/Public/JavaScript/Main.js b/typo3/sysext/extensionmanager/Resources/Public/JavaScript/Main.js
index b2c0e272f056..94add80056b9 100644
--- a/typo3/sysext/extensionmanager/Resources/Public/JavaScript/Main.js
+++ b/typo3/sysext/extensionmanager/Resources/Public/JavaScript/Main.js
@@ -517,7 +517,7 @@ define([
 					]);
 					Modal.currentModal.on('shown.bs.modal', function() {
 						var $actionButton = Modal.currentModal.find('.t3js-dependencies');
-						$('input[name=unlockDependencyIgnoreButton]').on('change', function() {
+						$('input[name="unlockDependencyIgnoreButton"]', Modal.currentModal).on('change', function() {
 							$actionButton.toggleClass('disabled', !$(this).prop('checked'));
 						});
 					});
-- 
GitLab