* Change the rule to create the shadow product's name.

This commit is contained in:
liugang
2022-09-15 13:52:12 +08:00
parent f5712fd636
commit 00857783d7
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -1269,7 +1269,7 @@ class projectModel extends model
{
/* If parent not empty, link products or create products. */
$product = new stdclass();
$product->name = !$project->hasProduct ? "{$project->name}_{$projectID}" : ($this->post->productName ? $this->post->productName : $project->name);
$product->name = !$project->hasProduct ? "SHADOW_{$project->name}_{$projectID}" : ($this->post->productName ? $this->post->productName : $project->name);
$product->shadow = (int)empty($project->hasProduct);
$product->bind = $this->post->parent ? 0 : 1;
$product->program = $project->parent ? current(array_filter(explode(',', $program->path))) : 0;