From da88cf57077609d5d3804057008eafac1fc1b823 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20M=2E=20C=C3=A1mara?= Date: Sat, 16 Sep 2017 16:27:08 +0200 Subject: [PATCH 1/4] Fixed js error when chosing file --- com_podcastmanager/admin/models/fields/podcastmedia.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com_podcastmanager/admin/models/fields/podcastmedia.php b/com_podcastmanager/admin/models/fields/podcastmedia.php index 513ba4dd..0fdc30de 100644 --- a/com_podcastmanager/admin/models/fields/podcastmedia.php +++ b/com_podcastmanager/admin/models/fields/podcastmedia.php @@ -73,7 +73,7 @@ protected function getInput() $script[] = ' if (old_id != id) {'; $script[] = ' var elem = document.id(id)'; $script[] = ' elem.value = value;'; - $script[] = ' elem.onchange();'; + $script[] = ' elem.dispatchEvent(new Event(\'change\'));'; $script[] = ' }'; $script[] = ' }'; From f09612c128ebf1130634b3201f07e99fafa7dd07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20M=2E=20C=C3=A1mara?= Date: Sat, 16 Sep 2017 16:27:48 +0200 Subject: [PATCH 2/4] fixed method declaration --- com_podcastmanager/admin/tables/podcast.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com_podcastmanager/admin/tables/podcast.php b/com_podcastmanager/admin/tables/podcast.php index 85215b98..d884b329 100644 --- a/com_podcastmanager/admin/tables/podcast.php +++ b/com_podcastmanager/admin/tables/podcast.php @@ -96,7 +96,7 @@ protected function _getAssetTitle() * * @since 2.0 */ - protected function _getAssetParentId($table = null, $id = null) + protected function _getAssetParentId(JTable $table = null, $id = null) { // Initialise variables. $assetId = null; From a1b704f86d527b4eb2d84fb1eff0c4e1a7630eb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20M=2E=20C=C3=A1mara?= Date: Sat, 16 Sep 2017 16:28:54 +0200 Subject: [PATCH 3/4] fixed undefined strapped variable --- script.php | 1 + 1 file changed, 1 insertion(+) diff --git a/script.php b/script.php index d276f045..4b13f7c6 100644 --- a/script.php +++ b/script.php @@ -174,6 +174,7 @@ public function update($parent) */ public function postflight($type, $parent, $results) { + $strapped = false; // If in CMS 3, install the Strapped layouts if (version_compare(JVERSION, '3.0', 'ge') && $type == 'install') { From a70e29a64f35699cb1597bce4447380e80b16077 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20M=2E=20C=C3=A1mara?= Date: Sat, 16 Sep 2017 16:30:10 +0200 Subject: [PATCH 4/4] fixed method declaration --- com_podcastmanager/admin/models/podcast.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com_podcastmanager/admin/models/podcast.php b/com_podcastmanager/admin/models/podcast.php index 20ef4cfd..26eb8ec4 100644 --- a/com_podcastmanager/admin/models/podcast.php +++ b/com_podcastmanager/admin/models/podcast.php @@ -569,7 +569,7 @@ protected function loadFormData() * * @since 1.6 */ - protected function prepareTable(&$table) + protected function prepareTable($table) { // Set the publish date to now if ($table->published == 1 && intval($table->publish_up) == 0)