* [task#144522,doing,1h] Show the template from review.

This commit is contained in:
xieqiyu
2025-06-12 14:16:04 +08:00
parent 66ba325e4e
commit 765990a94c
+3 -3
View File
@@ -166,9 +166,9 @@ class doc extends control
}
$doc = $this->doc->getByID($blockData->doc);
$this->view->isTemplate = !empty($doc->templateType);
$this->view->isTemplate = !empty($doc->templateType) && $blockData->extra != 'fromReview';
if(!empty($doc->templateType))
if($this->view->isTemplate)
{
$this->view->title = sprintf($this->lang->doc->insertTitle, $this->lang->docTemplate->zentaoList[$type]);
$this->view->type = $type;
@@ -181,7 +181,7 @@ class doc extends control
return $this->display();
}
$fromTemplate = $blockData->extra == 'fromTemplate';
$fromTemplate = $blockData->extra == 'fromTemplate' || $blockData->extra == 'fromReview';
if($fromTemplate)
{
$this->view->title = sprintf($this->lang->doc->insertTitle, $this->lang->docTemplate->zentaoList[$type]);