fix #466, delete mdauthor & mdstatus with uuid

This commit is contained in:
wlx 2013-04-26 15:37:04 +00:00
parent afbbaf03f6
commit ac1c92d9dc
1 changed files with 2 additions and 2 deletions

View File

@ -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();