diff --git a/application/default/controllers/DataController.php b/application/default/controllers/DataController.php index 825ca58b..ea7d1be0 100755 --- a/application/default/controllers/DataController.php +++ b/application/default/controllers/DataController.php @@ -632,6 +632,12 @@ class DataController extends Zend_Controller_Action $patt['uuid'] = $formdata['uuid']; $patt['title']= $this->view->metadata->title; $patt['content']= $content; + + $title = "收到新数据评论"; + $msg = "用户".$user->username."对元数据《".$patt['title']."》进行了评论,点击查看"; + include_once("message.php"); + message::post($this->db,0,-1,$title,$msg); + $mailtp=new EmailText($this->db,"data-comment-note",$patt); $mail=new WestdcMailer($this->view->config->smtp); $mail->setBodyText($mailtp->getBody()); @@ -647,15 +653,15 @@ class DataController extends Zend_Controller_Action $formdata['email']=$user->email; } $commentForm->populate($formdata); - $this->view->commentForm=$commentForm; - //自动跳转 - $sql="select s.* from datasource d left join source s on d.sourceid=s.id where d.uuid=?"; - $row=$this->db->fetchRow($this->db->quoteInto($sql,$uuid)); - $jump=(int)$this->_request->getParam('jump'); - if (empty($jump)) $jump=1;//默认跳转 - if (@$row->has_pages && ($jump!=0)) - { - $this->_helper->viewRenderer($row->code.'/view',null,true); + $this->view->commentForm=$commentForm; + //自动跳转 + $sql="select s.* from datasource d left join source s on d.sourceid=s.id where d.uuid=?"; + $row=$this->db->fetchRow($this->db->quoteInto($sql,$uuid)); + $jump=(int)$this->_request->getParam('jump'); + if (empty($jump)) $jump=1;//默认跳转 + if (@$row->has_pages && ($jump!=0)) + { + $this->_helper->viewRenderer($row->code.'/view',null,true); } } /*