Merge branch 'sprint/181_liumengyi_edit' into 'master'
* Fix bug #18173. See merge request easycorp/zentaopms!1275
This commit is contained in:
@@ -604,7 +604,11 @@ class productplanModel extends model
|
||||
$parent = $this->getByID($parentID);
|
||||
$childStatus = $this->dao->select('status')->from(TABLE_PRODUCTPLAN)->where('parent')->eq($parentID)->andWhere('deleted')->eq(0)->fetchPairs();
|
||||
|
||||
if(count($childStatus) == 1 and isset($childStatus['closed']))
|
||||
if(count($childStatus) == 1 and isset($childStatus['wait']))
|
||||
{
|
||||
return;
|
||||
}
|
||||
elseif(count($childStatus) == 1 and isset($childStatus['closed']))
|
||||
{
|
||||
if($parent->status != 'closed')
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user