fix #466, delete mdauthor & mdstatus with uuid
This commit is contained in:
parent
afbbaf03f6
commit
ac1c92d9dc
|
@ -300,8 +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("delete from mdstatus where uuid=?",array($delete));
|
||||
$this->db->query("delete from mdauthor where uuid=?",array($delete));
|
||||
$this->db->query($sql,array($delete));
|
||||
$this->messenger->addMessage('提示信息:您已经成功删除该数据。');
|
||||
$search=new Search();
|
||||
|
|
Loading…
Reference in New Issue