From ad4a3baa13b6a32e2ac93ddb930d9f94b531fc6e Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Thu, 31 Oct 2019 15:05:21 +0100 Subject: [PATCH] Fix JavaScript error when uploading media on media list page See #2606 --- .../install/files/js/WoltLabSuite/Core/Controller/Media/List.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Media/List.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Media/List.js index b7a2045bbb..5613bdf52d 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Media/List.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Media/List.js @@ -135,7 +135,7 @@ define([ var keys = Object.keys(data.media); if (keys.length) { - _mediaEditor.edit(this._media.get(~~data.media[keys[0]].mediaID)); + _mediaEditor.edit(data.media[keys[0]]); } } }, -- 2.20.1