Fix JavaScript error when uploading media on media list page
authorMatthias Schmidt <gravatronics@live.com>
Thu, 31 Oct 2019 14:05:21 +0000 (15:05 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Thu, 31 Oct 2019 14:05:21 +0000 (15:05 +0100)
See #2606

wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Media/List.js

index b7a2045bbb26e3fd334a803560d9b44a0a3ff144..5613bdf52de9ff5dbd703c7ff8f71566b3ef8e0a 100644 (file)
@@ -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]]);
                                }
                        }
                },