From dee641a3b629998f244c5c32e1bbdc260fc7c4f2 Mon Sep 17 00:00:00 2001 From: wangxiaomeng Date: Thu, 14 Apr 2022 13:21:41 +0800 Subject: [PATCH] Aborting commit due to empty commit message --- module/bug/model.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/module/bug/model.php b/module/bug/model.php index 5a4a9de304..fc4c6cbf30 100644 --- a/module/bug/model.php +++ b/module/bug/model.php @@ -674,6 +674,10 @@ class bugModel extends model return false; } + if(empty($_POST['assignedTo']) and $oldBug->status == 'closed'){ + $_POST['assignedTo'] = 'closed'; + } + $now = helper::now(); $bug = fixer::input('post') ->cleanInt('product,module,severity,project,execution,story,task,branch')