修改数据删除时的bug

This commit is contained in:
Li Jianxuan 2014-07-22 03:33:26 +00:00
parent a2b4bfe397
commit 66c37925dd
1 changed files with 2865 additions and 2865 deletions

View File

@ -57,10 +57,10 @@ class Admin_DataController extends Zend_Controller_Action
if ($delete) if ($delete)
{ {
$sql="delete from metadata where uuid=? and uuid in (select uuid from ".$this->view->config->sub->meatadata.")"; $sql="delete from metadata where uuid=? and uuid in (select uuid from ".$this->view->config->sub->metadata.")";
try { try {
$this->db->query("delete from mdstatus where uuid=? and uuid in (select uuid from ".$this->view->config->sub->meatadata.")",array($delete)); $this->db->query("delete from mdstatus where uuid=? and uuid in (select uuid from ".$this->view->config->sub->metadata.")",array($delete));
$this->db->query("delete from mdauthor where uuid=? and uuid in (select uuid from ".$this->view->config->sub->meatadata.")",array($delete)); $this->db->query("delete from mdauthor where uuid=? and uuid in (select uuid from ".$this->view->config->sub->metadata.")",array($delete));
$this->db->query($sql,array($delete)); $this->db->query($sql,array($delete));
$this->messenger->addMessage('提示信息:您已经成功删除该数据。'); $this->messenger->addMessage('提示信息:您已经成功删除该数据。');
$search=new Search(); $search=new Search();