* Fix bug#25523.

This commit is contained in:
xieqiyu
2022-07-27 14:11:10 +08:00
parent 69ee2ea498
commit 91493be372
+2 -1
View File
@@ -1124,7 +1124,8 @@ class projectModel extends model
}
else
{
$existProductName = $this->dao->select('name')->from(TABLE_PRODUCT)->where('name')->eq($_POST['productName'])->fetch('name');
$programID = isset($project->parent) ? $project->parent : 0;
$existProductName = $this->dao->select('name')->from(TABLE_PRODUCT)->where('name')->eq($_POST['productName'])->andWhere('program')->eq($programID)->fetch('name');
if(!empty($existProductName))
{
dao::$errors['productName'] = $this->lang->project->existProductName;