From a72d9790fd354ebfa240b2cffcf17a5a7df503ae Mon Sep 17 00:00:00 2001 From: sunguangming Date: Thu, 7 Mar 2024 09:57:05 +0800 Subject: [PATCH] * Code for story action bug. --- module/action/model.php | 5 +++-- module/story/ui/view.html.php | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/module/action/model.php b/module/action/model.php index aed0175970..133f38cabf 100755 --- a/module/action/model.php +++ b/module/action/model.php @@ -592,8 +592,9 @@ class actionModel extends model { if($objectType == 'story') { - $moduleName = $this->app->rawModule; - $desc['extra'] = $this->lang->{$moduleName}->{$desc['extra']}; + $story = $this->fetchByID($action->objectID, $objectType); + if($story->type != 'story') $this->app->loadLang($story->type); + $desc['extra'] = $this->lang->{$story->type}->{$desc['extra']}; } else { diff --git a/module/story/ui/view.html.php b/module/story/ui/view.html.php index c710444ff5..d1f5506814 100644 --- a/module/story/ui/view.html.php +++ b/module/story/ui/view.html.php @@ -244,7 +244,7 @@ detailBody ) ) ), - history(set::objectID($story->id)), + history(set::objectID($story->id), set::objectType('story')), floatToolbar ( set::object($story),