* Code for story action bug.

This commit is contained in:
sunguangming
2024-03-07 09:57:05 +08:00
parent 754066bed4
commit a72d9790fd
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -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
{
+1 -1
View File
@@ -244,7 +244,7 @@ detailBody
)
)
),
history(set::objectID($story->id)),
history(set::objectID($story->id), set::objectType('story')),
floatToolbar
(
set::object($story),