Skip to content

Commit

Permalink
Merge pull request #1 from magefan/patch-1
Browse files Browse the repository at this point in the history
Fixed error on product duplication
  • Loading branch information
kiwi-commerce authored Oct 9, 2018
2 parents df51892 + f9300ad commit ecc8669
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Helper/TrackField.php
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ public function getWildCardData($model, $method)
if ($method == self::PRODUCT_METHOD) {
$newQty = $model->getData('stock_data');
$oldQty = $model->getOrigData('quantity_and_stock_status');
if ($newQty['qty'] != $oldQty['qty']) {
if (isset($newQty['qty']) && isset($oldQty['qty']) && $newQty['qty'] != $oldQty['qty']) {
$logData['qty'] = [
'old_value' => $oldQty['qty'],
'new_value' => $newQty['qty']
Expand Down

0 comments on commit ecc8669

Please sign in to comment.