diff --git a/lib/model/download_intent_clean.php b/lib/model/download_intent_clean.php index f162b2a4e..7492a629d 100644 --- a/lib/model/download_intent_clean.php +++ b/lib/model/download_intent_clean.php @@ -215,8 +215,6 @@ public static function total_downloads_by_show($where) downloads DESC '; - error_log(print_r($sql, true)); - return $wpdb->get_results($sql, ARRAY_A); } diff --git a/lib/modules/auphonic/admin.js b/lib/modules/auphonic/admin.js index 6fc390f50..050bda969 100644 --- a/lib/modules/auphonic/admin.js +++ b/lib/modules/auphonic/admin.js @@ -126,7 +126,13 @@ var PODLOVE = PODLOVE || {}; function initPresetFetching() { const showWidget = document.getElementById("showschecklist") + + if (!showWidget) { + return; + } + const items = showWidget.querySelectorAll('li input'); + const currentItem = showWidget.querySelector('li input:checked') for (const item of items) { item.addEventListener('click', (e) => { @@ -135,6 +141,10 @@ var PODLOVE = PODLOVE || {}; getPresetForShow(input.value) }) } + + if (currentItem) { + getPresetForShow(currentItem.value) + } } if (document.readyState !== 'loading') { diff --git a/readme.txt b/readme.txt index 4f2d2a326..97f69c6c5 100644 --- a/readme.txt +++ b/readme.txt @@ -106,6 +106,11 @@ This product includes GeoLite2 data created by MaxMind, available from http://ww == Changelog == += 2022-02-15 = + +* fix: auphonic preset for show applies after saving the episode +* fix: remove debug error log for a shows analytics query + = 3.8.0 = **New module: Automatic Numbering**