* [bug#62447,done,1h,0h] Adjust update story return value.

This commit is contained in:
wangyuting
2025-05-19 10:26:26 +08:00
committed by 刘刚
parent e36abdc741
commit 9b6be6479e
2 changed files with 5 additions and 4 deletions
+1
View File
@@ -55,6 +55,7 @@ class docList extends wg
return div
(
setClass('form-group-wrapper picker-box'),
$mode == 'edit' ? picker
(
set::name('docs'),
+4 -4
View File
@@ -827,11 +827,11 @@ class storyModel extends model
/**
* Update a story.
*
* @param int $storyID
* @param int $storyID
* @access public
* @return array the changes of the story.
* @return bool|int
*/
public function update(int $storyID, object $story, string|bool $comment = ''): bool
public function update(int $storyID, object $story, string|bool $comment = ''): bool|int
{
$oldStory = $this->getByID($storyID);
@@ -943,7 +943,7 @@ class storyModel extends model
if(isset($story->closedReason) and $story->closedReason == 'done') $this->loadModel('score')->create('story', 'close');
if(!empty($oldStory->twins)) $this->syncTwins($oldStory->id, $oldStory->twins, $changes, 'Edited');
return true;
return !empty($actionID) ? $actionID : false;
}
/**