diff --git a/module/story/model.php b/module/story/model.php index 24843d7840..919d851444 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -5290,7 +5290,7 @@ class storyModel extends model */ public function getGradeOptions(object|bool $story, string $storyType, array $appendList = array()): array { - if(!$story) return $this->getGradePairs($storyType, 'enable', $appendList); + if(!$story || common::isTutorialMode()) return $this->getGradePairs($storyType, 'enable', $appendList); $gradeOptions = array(); if($storyType != $story->type) diff --git a/module/story/tao.php b/module/story/tao.php index 37c0e292bc..d4aab6c67d 100644 --- a/module/story/tao.php +++ b/module/story/tao.php @@ -1996,7 +1996,7 @@ class storyTao extends storyModel /* Batch create button. */ $shadow = $this->dao->findByID($story->product)->from(TABLE_PRODUCT)->fetch('shadow'); - $canBatchCreateStory = common::hasPriv($story->type, 'batchcreate') && $this->isClickable($story, 'batchcreate') && $story->grade < $maxGradeGroup[$story->type] && empty($story->hasOtherTypeChild); + $canBatchCreateStory = (common::hasPriv($story->type, 'batchcreate') && $this->isClickable($story, 'batchcreate') && $story->grade < $maxGradeGroup[$story->type] && empty($story->hasOtherTypeChild)) || common::isTutorialMode(); if(!($this->app->rawModule == 'projectstory' && $this->app->rawMethod == 'story') || $this->config->vision == 'lite' || $shadow) { if($shadow and empty($taskGroups[$story->id])) $taskGroups[$story->id] = $this->dao->select('id')->from(TABLE_TASK)->where('story')->eq($story->id)->fetch('id');