fix #466, delete mdauthor & mdstatus where delete metadata by admin
This commit is contained in:
parent
aa57031297
commit
5dbfc168a5
|
@ -300,6 +300,8 @@ class Admin_DataController extends Zend_Controller_Action
|
|||
{
|
||||
$sql="delete from metadata where uuid=?";
|
||||
try {
|
||||
$this->db->query("delete from mdstatus where uuid in (select uuid from metadata where id=?)",array($delete));
|
||||
$this->db->query("delete from mdauthor where uuid in (select uuid from metadata where id=?)",array($delete));
|
||||
$this->db->query($sql,array($delete));
|
||||
$this->messenger->addMessage('提示信息:您已经成功删除该数据。');
|
||||
$search=new Search();
|
||||
|
|
Loading…
Reference in New Issue