Skip to content

Commit

Permalink
Improved rename of product images
Browse files Browse the repository at this point in the history
  • Loading branch information
bezumkin committed Nov 4, 2013
1 parent 046e26d commit 00d64bb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/components/minishop2/docs/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Changelog for miniShop2.
- Added ability to hide tabs of product page in manager. See new system settings.
- Improved style of horizontal product tabs.
- Improved proportions in settings tab of category.
- Improved rename of product images.

2.1.1 pl2
==============
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ public function afterSave() {
}
}

/** @var msProduct $product */
if ($product = $this->object->getOne('Product')) {
$product->updateProductImage();
}

return parent::beforeSave();
}

Expand Down

0 comments on commit 00d64bb

Please sign in to comment.