News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Possible bug: product cloning change from "No override" to "default"

Started by zanardi, October 16, 2012, 13:40:09 PM

Previous topic - Next topic

zanardi

When you clone a product, if the original product is set to "Product details page: No override" (database value: 0), the new product gets a "default" value instead of "0".

That's because of line 685 in models/product.php:

if (empty($child->layout)) {

empty(0) returns true ( http://php.net/manual/en/function.empty.php ).

So the "0" value gets lost in favour of the "default" value.
--
Francesco (zanardi)
http://extensions.gibilogic.com
@gibilogic on Twitter