From: Matthias Schmidt Date: Fri, 25 Dec 2015 09:59:44 +0000 (+0100) Subject: Fix variable in media editor X-Git-Tag: 3.0.0_Beta_1~2030^2~196 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2ef2709eba78960ffafb4897c07ce542c7ca77f7;p=GitHub%2FWoltLab%2FWCF.git Fix variable in media editor --- diff --git a/wcfsetup/install/files/js/WoltLab/WCF/Media/Editor.js b/wcfsetup/install/files/js/WoltLab/WCF/Media/Editor.js index a0189185f7..dfa5e5a657 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/Media/Editor.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/Media/Editor.js @@ -271,7 +271,7 @@ define( LanguageInput.setValues('title', Dictionary.fromObject(this._media.title || { })); } else { - this._elements.altText.value = this._media.altText ? this._media.altText[languageId] : ''; + this._elements.altText.value = this._media.altText ? this._media.altText[this._media.languageID] : ''; this._elements.caption.value = this._media.caption ? this._media.caption[this._media.languageID] : ''; this._elements.title.value = this._media.title ? this._media.title[this._media.languageID] : ''; }