From c87b66a058bfcfdef1d0fddf7d11968cf58d84d2 Mon Sep 17 00:00:00 2001 From: Levente Santha Date: Tue, 4 Jul 2023 18:10:12 +0300 Subject: [PATCH 1/2] SITES-14355 - CISCO | Teaser core component - Smart crop issues * use a selector for fileupload which works for Teaser component too where the fileupload is not visible initially when the edit dialog is opened --- .../wcm/components/image/v3/image/clientlibs/editor/js/image.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/src/content/jcr_root/apps/core/wcm/components/image/v3/image/clientlibs/editor/js/image.js b/content/src/content/jcr_root/apps/core/wcm/components/image/v3/image/clientlibs/editor/js/image.js index 9763cc1416..dc8e71d11e 100644 --- a/content/src/content/jcr_root/apps/core/wcm/components/image/v3/image/clientlibs/editor/js/image.js +++ b/content/src/content/jcr_root/apps/core/wcm/components/image/v3/image/clientlibs/editor/js/image.js @@ -134,7 +134,7 @@ toggleAlternativeFieldsAndLink(imageFromPageImage, isDecorative); togglePageImageInherited(imageFromPageImage, isDecorative); updateImageThumbnail().then(function() { - $cqFileUploadEdit = $dialog.find(".cq-FileUpload-edit:visible"); + $cqFileUploadEdit = $dialog.find(".cq-FileUpload-edit[trackingelement='edit']"); if ($cqFileUploadEdit) { fileReference = $cqFileUploadEdit.data("cqFileuploadFilereference"); if (fileReference === "") { From d9b099350a090747565e2f2a71ddad3e5dfe6c73 Mon Sep 17 00:00:00 2001 From: Levente Santha Date: Tue, 4 Jul 2023 19:15:47 +0300 Subject: [PATCH 2/2] SITES-14355 - CISCO | Teaser core component - Smart crop issues * fixing CodeQL issue --- .github/workflows/codeql.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 9f823b7116..951a7ee9b7 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -31,6 +31,8 @@ jobs: with: languages: ${{ matrix.language }} queries: +security-and-quality + paths-ignore: + - '**/jcr_root/apps/system/config/**' - name: Autobuild uses: github/codeql-action/autobuild@v2