Fix service creation, right is tested regarding the product type

This commit is contained in:
Maxime Kohlhaas 2018-04-03 14:38:20 +02:00
parent 8595d7621b
commit 39eab6d88d

View File

@ -94,6 +94,8 @@ if ($id > 0 || ! empty($ref))
if (! empty($conf->product->enabled)) $upload_dirold = $conf->product->multidir_output[$object->entity].'/'.substr(substr("000".$object->id, -2),1,1).'/'.substr(substr("000".$object->id, -2),0,1).'/'.$object->id."/photos";
else $upload_dirold = $conf->service->multidir_output[$object->entity].'/'.substr(substr("000".$object->id, -2),1,1).'/'.substr(substr("000".$object->id, -2),0,1).'/'.$object->id."/photos";
}
} else {
$object->type = $type;
}
$modulepart='product';