From 6def62819bb24d721ce9e4fe3d0674fbd7075ecb Mon Sep 17 00:00:00 2001 From: wlx Date: Tue, 18 Sep 2012 05:36:21 +0000 Subject: [PATCH] fix mdstatus insert error --- application/default/controllers/SubmitController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/default/controllers/SubmitController.php b/application/default/controllers/SubmitController.php index 03d265a3..372737a9 100644 --- a/application/default/controllers/SubmitController.php +++ b/application/default/controllers/SubmitController.php @@ -225,8 +225,8 @@ class SubmitController extends Zend_Controller_Action $iso=new ISO19115(); $iso->saveDB($this->db,$row['xml']); //进入评审库 - $sql="insert into mdstatus (uuid,status,userid) select uuid,0,? from mdversion where id=?"; - $this->db->query($sql,array($u_id,$id)); + $sql="insert into mdstatus (uuid,status,userid) values(?,?,?)"; + $this->db->query($sql,array($uuid,0,$id)); //email to admin $mail=new WestdcMailer($this->view->config->smtp);