From 1228ad8b1f8b0590aba6fafa52fff64ed3a1ca25 Mon Sep 17 00:00:00 2001 From: xia0ta0 Date: Fri, 12 Dec 2014 10:27:43 +0800 Subject: [PATCH] * code for task#2146. --- module/bug/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/bug/model.php b/module/bug/model.php index ad645aaab1..d5cbe3e878 100644 --- a/module/bug/model.php +++ b/module/bug/model.php @@ -431,7 +431,7 @@ class bugModel extends model if($bug->assignedTo != $oldBug->assignedTo) $bug->assignedDate = $now; if(($bug->resolvedBy != '' or $bug->resolution != '') and $oldBug->status != 'resolved') $bug->resolvedDate = $now; if($bug->resolution != '' and $bug->resolvedBy == '') $bug->resolvedBy = $this->app->user->account; - if($bug->resolution != '') + if($bug->resolution != '' and $bug->status != 'closed') { $bug->status = 'resolved'; $bug->confirmed = 1;