diff --git a/module/bug/model.php b/module/bug/model.php index 6b26efe3f0..dcb1855a8e 100644 --- a/module/bug/model.php +++ b/module/bug/model.php @@ -800,6 +800,12 @@ class bugModel extends model */ public function resolve($bugID) { + if(strpos($this->config->bug->resolve->requiredFields, 'comment') !== false and !$this->post->comment) + { + dao::$errors[] = sprintf($this->lang->error->notempty, $this->lang->comment); + return false; + } + $now = helper::now(); $oldBug = $this->getById($bugID); $bug = fixer::input('post') diff --git a/module/bug/view/batchactivate.html.php b/module/bug/view/batchactivate.html.php index 141f022093..788f060b9d 100644 --- a/module/bug/view/batchactivate.html.php +++ b/module/bug/view/batchactivate.html.php @@ -16,7 +16,7 @@ bug->common . $lang->colon . $lang->bug->batchActivate;?> -