fix #466, delete mdauthor & mdstatus where delete metadata by admin

This commit is contained in:
wlx 2013-04-26 15:22:55 +00:00
parent aa57031297
commit 5dbfc168a5
1 changed files with 2 additions and 0 deletions

View File

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