From 5dbfc168a5ef0117390cb23e0fefada82f74424d Mon Sep 17 00:00:00 2001 From: wlx Date: Fri, 26 Apr 2013 15:22:55 +0000 Subject: [PATCH] fix #466, delete mdauthor & mdstatus where delete metadata by admin --- application/admin/controllers/DataController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/application/admin/controllers/DataController.php b/application/admin/controllers/DataController.php index e4c24a12..7af02883 100755 --- a/application/admin/controllers/DataController.php +++ b/application/admin/controllers/DataController.php @@ -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();