diff --git a/YOUR_ADMIN/includes/classes/dbio/DbIoProductsAttribsBasicHandler.php b/YOUR_ADMIN/includes/classes/dbio/DbIoProductsAttribsBasicHandler.php index 0d4ce1f..808f65a 100644 --- a/YOUR_ADMIN/includes/classes/dbio/DbIoProductsAttribsBasicHandler.php +++ b/YOUR_ADMIN/includes/classes/dbio/DbIoProductsAttribsBasicHandler.php @@ -1,7 +1,7 @@ '1.0.`', + 'version' => '1.6.2', 'handler_version' => '1.0.0', 'include_header' => true, 'export_only' => false, @@ -183,7 +183,7 @@ protected function importFinishProcessing() $option_check = $db->Execute( "SELECT products_options_id FROM " . TABLE_PRODUCTS_OPTIONS . " - WHERE products_options_name = '" . $db->prepare_input ($products_options_name) . "' + WHERE products_options_name = '" . $db->prepare_input($products_options_name) . "' AND language_id = $language_id AND products_options_type = " . (int)$products_options_type . " LIMIT 1", @@ -198,11 +198,11 @@ protected function importFinishProcessing() $products_options_id = $option_check->fields['products_options_id']; $options_values_names = explode('^', $this->saved_data['option_values']); - $options_values_list = ''; + $options_values = array(); foreach ($options_values_names as $current_value_name) { - $options_values_list .= "'$current_value_name', "; + $options_values[] = $db->prepare_input($current_value_name); } - $options_values_list = dbio_substr($options_values_list, 0, -2); + $options_values_list = "'" . implode("', '", $options_values) . "'"; $options_values_check = $db->Execute( "SELECT pov.products_options_values_id, pov.products_options_values_name FROM " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov, " . TABLE_PRODUCTS_OPTIONS_VALUES_TO_PRODUCTS_OPTIONS . " pov2po diff --git a/YOUR_ADMIN/includes/init_includes/init_dbio_admin.php b/YOUR_ADMIN/includes/init_includes/init_dbio_admin.php index 401a9c1..1ffa311 100644 --- a/YOUR_ADMIN/includes/init_includes/init_dbio_admin.php +++ b/YOUR_ADMIN/includes/init_includes/init_dbio_admin.php @@ -14,8 +14,8 @@ return; } -define('DBIO_CURRENT_VERSION', '1.6.2-beta2'); -define('DBIO_CURRENT_UPDATE_DATE', '2020-04-09'); +define('DBIO_CURRENT_VERSION', '1.6.2-beta3'); +define('DBIO_CURRENT_UPDATE_DATE', '2020-05-14'); $version_release_date = DBIO_CURRENT_VERSION . ' (' . DBIO_CURRENT_UPDATE_DATE . ')'; diff --git a/docs/dbio/readme.html b/docs/dbio/readme.html index 8728758..f3a5c90 100644 --- a/docs/dbio/readme.html +++ b/docs/dbio/readme.html @@ -588,10 +588,12 @@

Database I/O Manager (DbIo) for Zen Cart®

You can view the details of these changes on the plugin's GitHub repository.