修复search类操作的错误
This commit is contained in:
parent
f80820374c
commit
be9dc8976c
|
@ -152,11 +152,11 @@ class Admin_ReviewController extends Zend_Controller_Action
|
|||
//update search document
|
||||
$search=new Search();
|
||||
//create search view in xunsearch
|
||||
$sql="select * from xunsearch where uuid in (select uuid from metadata where id=?)";
|
||||
$sql="select uuid from mdstatus where id=?";
|
||||
$sth = $this->db->prepare($sql);
|
||||
$sth->execute(array($cancel));
|
||||
$data = $sth->fetch();
|
||||
$search->update($data);
|
||||
$search->del($data['uuid'],'uuid');
|
||||
$this->messenger->addMessage('操作成功:已取消该数据的评审');
|
||||
$this->_redirect("/admin/review/accept");
|
||||
}
|
||||
|
@ -755,7 +755,7 @@ class Admin_ReviewController extends Zend_Controller_Action
|
|||
//update search document
|
||||
$search=new Search();
|
||||
//create search view in xunsearch
|
||||
$sql="select * from xunsearch where uuid in (select uuid from metadata where id in (?))";
|
||||
$sql="select * from xunsearch where uuid in (select uuid from mdstatus where id in (?))";
|
||||
$sth = $this->db->prepare($sql);
|
||||
$sth->execute(array($ids));
|
||||
while ($data = $sth->fetch())
|
||||
|
|
Loading…
Reference in New Issue