From: Matthias Schmidt Date: Thu, 1 Sep 2016 15:30:16 +0000 (+0200) Subject: Fix issue with media selection manager X-Git-Tag: 3.0.0_Beta_1~363 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=223269c20a5d61105ea4fbd46bc1d5a13377e5bd;p=GitHub%2FWoltLab%2FWCF.git Fix issue with media selection manager --- 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 = '
'