diff --git a/module/ai/control.php b/module/ai/control.php index 9da0adef1b..277b4c029f 100644 --- a/module/ai/control.php +++ b/module/ai/control.php @@ -152,13 +152,13 @@ class ai extends control { $prompt = $this->ai->getPromptById($id); - $this->view->dataPreview = $this->ai->generateDemoDataPrompt($prompt->module, $prompt->source); $this->view->prompt = $prompt; $this->view->preAndNext = $this->loadModel('common')->getPreAndNextObject('prompt', $id); $this->view->actions = $this->loadModel('action')->getList('prompt', $id); + $this->view->dataPreview = $this->ai->generateDemoDataPrompt($prompt->module, $prompt->source); + $this->view->users = $this->loadModel('user')->getPairs('noletter'); $this->view->title = "{$this->lang->ai->prompts->common}#{$prompt->id} $prompt->name"; $this->view->position[] = $this->lang->ai->prompts->common; - $this->view->users = $this->user->getPairs('noletter'); $this->display(); } diff --git a/module/ai/view/promptview.html.php b/module/ai/view/promptview.html.php index d1f7c1d53e..108dc30c8b 100644 --- a/module/ai/view/promptview.html.php +++ b/module/ai/view/promptview.html.php @@ -16,7 +16,7 @@ ' . $lang->goback, '', "class='btn btn-secondary'");?>