* Code review.

This commit is contained in:
chaideqing
2023-08-18 00:57:59 +00:00
parent ef5f6ca49e
commit 69d0e9c3e5
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ function deleteFile(fileID, obj)
* @param int $extension
* @param int $imageWidth
* @param string $fileTitle
* @param string $type download,preview
* @param string $type download|preview
* @access public
* @return void
*/
+3 -3
View File
@@ -4242,9 +4242,9 @@ class taskModel extends model
{
if($task->deleted) return '';
$isPlmMode = $this->config->systemMode == 'PLM';
$isPLMMode = $this->config->systemMode == 'PLM';
if($isPlmMode)
if($isPLMMode)
{
$execution = $this->loadModel('execution')->getByID($task->execution);
$execution = $this->loadModel('execution')->canStageStart($execution);
@@ -4259,7 +4259,7 @@ class taskModel extends model
$menu .= $this->buildMenu('task', 'assignTo', "executionID=$task->execution&taskID=$task->id", $task, 'button', '', '', 'iframe', true, '', $this->lang->task->assignTo);
$plmCanStart = !($isPlmMode and empty($execution['canStart']));
$plmCanStart = !($isPLMMode and empty($execution['canStart']));
if($plmCanStart) $menu .= $this->buildMenu('task', 'start', $params, $task, 'view', '', '', 'iframe showinonlybody', true);
if($plmCanStart) $menu .= $this->buildMenu('task', 'restart', $params, $task, 'view', '', '', 'iframe showinonlybody', true);
if($plmCanStart) $menu .= $this->buildMenu('task', 'recordEstimate', $params, $task, 'view', '', '', 'iframe showinonlybody', true);