Fix service creation, right is tested regarding the product type
This commit is contained in:
parent
8595d7621b
commit
39eab6d88d
@ -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";
|
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 $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';
|
$modulepart='product';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user