Fix variable in media editor
authorMatthias Schmidt <gravatronics@live.com>
Fri, 25 Dec 2015 09:59:44 +0000 (10:59 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Fri, 25 Dec 2015 09:59:44 +0000 (10:59 +0100)
wcfsetup/install/files/js/WoltLab/WCF/Media/Editor.js

index a0189185f71c0a2a17aaef2de9bec638f94fbe14..dfa5e5a657c5e80f791c19943cc5863be1f036dc 100644 (file)
@@ -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] : '';
                        }