From 223269c20a5d61105ea4fbd46bc1d5a13377e5bd Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Thu, 1 Sep 2016 17:30:16 +0200 Subject: [PATCH] Fix issue with media selection manager --- .../install/files/js/WoltLabSuite/Core/Media/Manager/Select.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Media/Manager/Select.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Media/Manager/Select.js index 34e4fd0ca8..8cc4d1c882 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Media/Manager/Select.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Media/Manager/Select.js @@ -89,7 +89,7 @@ define(['Core', 'Dom/Traverse', 'Dom/Util', 'Language', 'ObjectMap', 'Ui/Dialog' var displayElement = elById(display); if (displayElement) { if (media.isImage) { - displayElement.innerHTML = '' + media.altText + ''; + displayElement.innerHTML = '' + (media.altText && media.altText[LANGUAGE_ID] ? media.altText[LANGUAGE_ID] : '') + ''; } else { displayElement.innerHTML = '
' -- 2.20.1