Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUGFIX] Fix undefined key warning in cObj->imageLinkWrap
The default configuration for JSWindow in lib.contentElement doesn't contain the params property, so after stdWrapping it in ContentObjectRenderer, it becomes an empty string. Thus, exploding it needs a fallback to prevent PHP 8.0 undefined array key warnings. In addition, first tests have been added for cObj->imageLinkWrap, which cover this warning. These tests have also found another warning for JSwindow.altUrl_noDefaultParams, which is also fixed now. Resolves: #96647 Related: #96508 Releases: main, 11.5 Change-Id: I593e42e3be8ebac4e8001275f2da9d635936c79e Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/73175 Tested-by: core-ci <typo3@b13.com> Tested-by: Stefan Bürk <stefan@buerk.tech> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de> Reviewed-by: Stefan Bürk <stefan@buerk.tech> Reviewed-by: physikbuddha <r.kaerner@oranto.de> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
- Loading branch information
1 parent
191002b
commit c3fa86f
Showing
4 changed files
with
227 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
typo3/sysext/frontend/Tests/Functional/ContentObject/DataSet/FileReferences.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
"tt_content",,,,,,,,,,,,,,,,,,,, | ||
,"uid","pid","header","image","sorting","deleted","hidden","sys_language_uid","l18n_parent","l10n_source","t3_origuid","t3ver_wsid","t3ver_state","t3ver_stage","t3ver_oid","categories",,,, | ||
,297,1,"Regular Element #1",1,256,0,0,0,0,0,0,0,0,0,0,0,,,, | ||
"sys_file",,,,,,,,,,,,,,,,,,,, | ||
,"uid","pid","type","storage","identifier","extension","mime_type","name","sha1","size","creation_date","modification_date","missing","metadata","identifier_hash","folder_hash","last_indexed",,, | ||
,1,0,2,1,"/user_upload/team-t3board10.jpg","jpg","image/jpeg","team-t3board10.jpg","ae6951147687ed1f94f60973fca7ef46e2ba2372",166843,1375080761,1374139442,0,0,"16ba2a587da8ef10dfccbe8b9841bde85afbd2d4","19669f1e02c2f16705ec7587044c66443be70725",0,,, | ||
,,,,,,,,,,,,,,,,,,,, | ||
"sys_file_reference",,,,,,,,,,,,,,,,,,,, | ||
,"uid","pid","title","uid_local","uid_foreign","sys_language_uid","l10n_parent","t3ver_wsid","t3ver_state","t3ver_stage","t3ver_oid","deleted","tablenames","fieldname","sorting_foreign","table_local","description","alternative","link","l10n_diffsource" | ||
,1,1,"T3BOARD",1,297,0,0,0,0,0,0,0,"tt_content","image",2,"sys_file",,,, |