实现元数据删除及版本更新时对应的搜索更新
This commit is contained in:
parent
69ef57cdec
commit
9e6ae1749c
|
@ -293,6 +293,8 @@ class Admin_DataController extends Zend_Controller_Action
|
|||
try {
|
||||
$this->db->query($sql,array($delete));
|
||||
$this->messenger->addMessage('提示信息:您已经成功删除该数据。');
|
||||
$search=new Search();
|
||||
$search->del($delete,'id');
|
||||
} catch (Exception $e) {
|
||||
$this->messenger->addMessage($e->getMessage());
|
||||
}
|
||||
|
@ -2423,7 +2425,12 @@ class Admin_DataController extends Zend_Controller_Action
|
|||
$data = array("commited"=>1,"error"=>'该版本已经成功发布!');
|
||||
$this->jsonexit($data);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
$sql="select * from xunsearch whre uuid=?";
|
||||
$sth = $this->db->prepare($sql);
|
||||
$sth->execute(array($row['uuid']));
|
||||
$row = $sth->fetch();
|
||||
$search->update($row);
|
||||
}catch(Exception $e) {
|
||||
$msg = "提交失败,请确认权限后重试";
|
||||
if($this->debug>0)
|
||||
|
|
Loading…
Reference in New Issue