diff --git a/module/bug/model.php b/module/bug/model.php index 8cfa5e97a6..c1f181ec42 100644 --- a/module/bug/model.php +++ b/module/bug/model.php @@ -633,6 +633,7 @@ class bugModel extends model ->join('openedBuild', ',') ->join('mailto', ',') ->join('linkBug', ',') + ->setIF(count($this->post->mailto) == 1 and !$this->post->mailto[0], 'mailto', '') ->setIF($this->post->assignedTo != $oldBug->assignedTo, 'assignedDate', $now) ->setIF($this->post->resolvedBy != '' and $this->post->resolvedDate == '', 'resolvedDate', $now) ->setIF($this->post->resolution != '' and $this->post->resolvedDate == '', 'resolvedDate', $now) diff --git a/module/doc/model.php b/module/doc/model.php index dc172cd17f..9e264b3401 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -2275,7 +2275,7 @@ EOT; if($startModule) $startModulePath = $startModule->path . '%'; } - $docs = $this->dao->select('*')->from(TABLE_DOC) + $docs = $this->dao->select('*')->from(TABLE_DOC) ->where('lib')->eq($rootID) ->andWhere('deleted')->eq(0) ->fetchAll(); @@ -2363,7 +2363,7 @@ EOT; else { if(!$docID and $currentMethod != 'tablecontents') $docID = $doc->id; - $treeMenu[$module->id] .= '