From ac1c92d9dc149db8c66e8a1fa8542928e94adbc0 Mon Sep 17 00:00:00 2001 From: wlx Date: Fri, 26 Apr 2013 15:37:04 +0000 Subject: [PATCH] fix #466, delete mdauthor & mdstatus with uuid --- application/admin/controllers/DataController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/admin/controllers/DataController.php b/application/admin/controllers/DataController.php index 7af02883..2a1578fe 100755 --- a/application/admin/controllers/DataController.php +++ b/application/admin/controllers/DataController.php @@ -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();