Skip to content

Commit

Permalink
#166: Correct ProductsAttribsRaw MySQL error ...
Browse files Browse the repository at this point in the history
... when importing "Check-only" and adding a new download attribute.
  • Loading branch information
lat9 committed Apr 9, 2020
1 parent 588e07c commit b5a0a25
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static function getHandlerInformation()
{
DbIoHandler::loadHandlerMessageFile('ProductsAttribsRaw');
return array(
'version' => '1.6.0',
'version' => '1.6.2',
'handler_version' => '1.4.0',
'include_header' => true,
'export_only' => false,
Expand Down Expand Up @@ -316,7 +316,7 @@ protected function importUpdateRecordKey($table_name, $table_fields, $record_key
//
protected function importBuildSqlQuery($table_name, $table_alias, $table_fields, $extra_where_clause = '', $is_override = false, $is_insert = true)
{
if ($table_name == TABLE_PRODUCTS_ATTRIBUTES_DOWNLOAD) {
if ($this->operation != 'check' && $table_name == TABLE_PRODUCTS_ATTRIBUTES_DOWNLOAD) {
// -----
// Grab the current 'products_attributes_id', location dependent on whether the base attribute
// record is an import or update.
Expand Down
4 changes: 2 additions & 2 deletions YOUR_ADMIN/includes/init_includes/init_dbio_admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
return;
}

define('DBIO_CURRENT_VERSION', '1.6.2-beta1');
define('DBIO_CURRENT_UPDATE_DATE', '2020-03-15');
define('DBIO_CURRENT_VERSION', '1.6.2-beta2');
define('DBIO_CURRENT_UPDATE_DATE', '2020-04-09');

$version_release_date = DBIO_CURRENT_VERSION . ' (' . DBIO_CURRENT_UPDATE_DATE . ')';

Expand Down
4 changes: 3 additions & 1 deletion docs/dbio/readme.html
Original file line number Diff line number Diff line change
Expand Up @@ -588,9 +588,11 @@ <h1 id="title">Database I/O Manager (DbIo) for Zen Cart&reg;</h1>
<noscript><h3>Version History</h3></noscript>
<p>You can view the details of these changes on the plugin's <a href="https://github.com/lat9/dbio/issues" target="_blank">GitHub repository.</a></p>
<ul>
<li>v1.6.2, 2020-03-15:<ul>
<li>v1.6.2, 2020-04-09:<ul>
<li>BUGFIX: Correct &quot;Products&quot; export creating multiple records for multi-lingual stores.</li>
<li>BUGFIX: Correct &quot;ProductsAttribsRaw&quot; check-only import MySQL error when inserting a new download attribute.</li>
<li>The following files were changed or <span class="added">added</span>:<ol>
<li>/YOUR_ADMIN/includes/classes/dbio/DbIoProductsAttribsRawHandler.php</li>
<li>/YOUR_ADMIN/includes/classes/dbio/DbIoProductsHandler.php</li>
<li>/YOUR_ADMIN/includes/init_includes/init_dbio_admin.php</li>
</ol></li>
Expand Down

0 comments on commit b5a0a25

Please sign in to comment.