From 4c3ae389b16dab1122e4cc6a5ad2973f1040f586 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Mon, 15 Dec 2025 14:52:27 +0800 Subject: [PATCH] * [refac] format objectID for fix create a story error. --- module/story/control.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/story/control.php b/module/story/control.php index 1f9711ec15..05a2c2296c 100755 --- a/module/story/control.php +++ b/module/story/control.php @@ -67,8 +67,8 @@ class story extends control helper::setcookie('lastStoryModule', $moduleID, $this->config->cookieLife, $this->config->webRoot, '', $this->config->cookieSecure, false); /* API will post projectID or executionID. */ - if($this->post->project) $objectID = $this->post->project; - if($this->post->execution) $objectID = $this->post->execution; + if($this->post->project) $objectID = (int)$this->post->project; + if($this->post->execution) $objectID = (int)$this->post->execution; /* Get story data from post. */ $storyData = $this->storyZen->buildStoryForCreate($objectID, $bugID, $storyType);