* hasUnfinishedChildren return bool.

This commit is contained in:
朱金勇
2023-10-13 05:56:13 +00:00
parent a2f5dd9280
commit d34d07b9bd
5 changed files with 35 additions and 32 deletions
+1 -1
View File
@@ -236,7 +236,7 @@ class program extends control
if(!empty($_POST))
{
/* Only when all subprograms and subprojects are closed can the program be closed. */
$hasUnfinished = $this->program->hasUnfinished($program);
$hasUnfinished = $this->program->hasUnfinishedChildren($program);
if($hasUnfinished) return $this->send(array('result' => 'fail', 'callback' => "zui.Modal.alert('{$this->lang->program->closeErrorMessage}');"));
$programData = form::data()->get();