diff --git a/Makefile b/Makefile index 6fe9424be6b5efd89b11366aedf941f5eda6e06b..69b43bd0089d6ca645ca1bb685c918bb741ff7df 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ BASE=downloads_for_sale PLUGINTYPE=vmcustom -VERSION=1.8.1 +VERSION=1.8.2 PLUGINFILES=$(BASE).php $(BASE).script.php $(BASE).xml index.html diff --git a/downloads_for_sale.php b/downloads_for_sale.php index cf68f01960b82ecf44e68ed185c444502d55584a..0ea955bd643394b09589c4920f86e512ee2c48a6 100644 --- a/downloads_for_sale.php +++ b/downloads_for_sale.php @@ -663,9 +663,9 @@ class plgVmCustomDownloads_for_Sale extends vmCustomPlugin { function getTableSQLFields() { $SQLfields = array( 'id' => 'int(1) UNSIGNED NOT NULL AUTO_INCREMENT', - 'virtuemart_customfield_id' => 'int(11) UNSIGNED NOT NULL DEFAULT 0', - 'virtuemart_order_item_id' => 'int(11) UNSIGNED NULL DEFAULT 0', - 'downloaded' => 'int(11) UNSIGNED NOT NULL DEFAULT 0', + 'virtuemart_customfield_id' => 'int(11) UNSIGNED NOT NULL DEFAULT \'0\'', + 'virtuemart_order_item_id' => 'int(11) UNSIGNED DEFAULT \'0\'', + 'downloaded' => 'int(11) UNSIGNED NOT NULL DEFAULT \'0\'', ); return $SQLfields; } @@ -780,8 +780,7 @@ class plgVmCustomDownloads_for_Sale extends vmCustomPlugin { ->from('#__extensions') ->where('folder = '.$db->quote($this->_type)) ->where('element = '.$db->quote($this->_name)) - ->where('type =' . $db->quote('plugin')) - ->order('ordering'); + ->where('type =' . $db->quote('plugin')); $plugin = $db->setQuery($query)->loadObject(); if (!$plugin) diff --git a/downloads_for_sale.xml b/downloads_for_sale.xml index 467f0cb7bc134718d9e9dc69f2863f9b36cb8c00..9284c52b492147db10653c1236243043a88be30c 100644 --- a/downloads_for_sale.xml +++ b/downloads_for_sale.xml @@ -6,7 +6,7 @@ <authorUrl>http://www.open-tools.net/</authorUrl> <copyright>Copyright (C) 2013 Reinhold Kainhofer. All rights reserved.</copyright> <license>http://www.gnu.org/licenses/gpl.html GNU/GPL v3+</license> - <version>1.8.1</version> + <version>1.8.2</version> <description>VMCUSTOM_DLSALE_DESC</description> <files> <filename plugin="downloads_for_sale">downloads_for_sale.php</filename> diff --git a/releases/plg_vmcustom_downloads_for_sale_v1.8.2.zip b/releases/plg_vmcustom_downloads_for_sale_v1.8.2.zip new file mode 100644 index 0000000000000000000000000000000000000000..2184786438d38fc6fc4cc9c28f805b6036e04630 Binary files /dev/null and b/releases/plg_vmcustom_downloads_for_sale_v1.8.2.zip differ