From 9b7dd7f98eff50a8ed47f9e35c3388f37b0e2ea0 Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Fri, 30 Sep 2022 01:26:18 +0000 Subject: [PATCH 1/2] * Fix bug#26993. --- module/action/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/action/model.php b/module/action/model.php index d626791567..1c4759aca0 100755 --- a/module/action/model.php +++ b/module/action/model.php @@ -575,7 +575,7 @@ class actionModel extends model if($history->field == 'git') $history->diff = str_replace('+', '%2B', $history->diff); } } - elseif($actionName == 'linkstory' or $actionName == 'unlinkstory') + elseif($actionName == 'linkstory' or $actionName == 'unlinkstory' or $actionName = 'createchildrenstory') { $extra = ''; foreach(explode(',', $action->extra) as $id) $extra .= common::hasPriv('story', 'view') ? html::a(helper::createLink('story', 'view', "storyID=$id"), "#$id ") . ', ' : "#$id, "; From c303642c42ce3387cfaa29e9300277568d00f779 Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Fri, 30 Sep 2022 01:28:21 +0000 Subject: [PATCH 2/2] * Code for bug#26993. --- module/action/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/action/model.php b/module/action/model.php index 1c4759aca0..df39540510 100755 --- a/module/action/model.php +++ b/module/action/model.php @@ -575,7 +575,7 @@ class actionModel extends model if($history->field == 'git') $history->diff = str_replace('+', '%2B', $history->diff); } } - elseif($actionName == 'linkstory' or $actionName == 'unlinkstory' or $actionName = 'createchildrenstory') + elseif(strpos('linkstory,unlinkstory,createchildrenstory', $actionName) !== false) { $extra = ''; foreach(explode(',', $action->extra) as $id) $extra .= common::hasPriv('story', 'view') ? html::a(helper::createLink('story', 'view', "storyID=$id"), "#$id ") . ', ' : "#$id, ";