// #PSTEST-1229 - make sure you cannot select virtual product if you have combinations

This commit is contained in:
tDidierjean
2012-04-24 16:45:00 +00:00
parent 0194da6c1d
commit a15fa2f2b2
4 changed files with 27 additions and 16 deletions
@@ -2184,6 +2184,7 @@ class AdminProductsControllerCore extends AdminController
$this->tpl_form_vars['upload_max_filesize'] = $upload_max_filesize;
$this->tpl_form_vars['country_display_tax_label'] = $this->context->country->display_tax_label;
$this->tpl_form_vars['has_combinations'] = $this->object->hasAttributes();
// let's calculate this once for all
if (!Validate::isLoadedObject($this->object) && Tools::getValue('id_product'))