修复删除中间版本功能

This commit is contained in:
wlx 2012-06-12 11:05:03 +00:00
parent fb905b5069
commit 3ae7513fbf
1 changed files with 2 additions and 2 deletions

View File

@ -1982,7 +1982,7 @@ class Admin_DataController extends Zend_Controller_Action
$iso=new ISO19115();
$iso->saveDB($this->db,$row['xml']);
//移除中间版本
$sql="delete from mdversion where uuid in (select uuid from mdversion where id=?) and char_length(changelog)<3";
$sql="delete from mdversion where uuid in (select uuid from mdversion where id=?) and changelog is null";
$this->db->query($sql,array($id));
//修改评审状态为发布,且由其提交的用户进行管理
$sql="insert into mdstatus (uuid,status,userid) select uuid,6,? from mdversion where id=?";
@ -2150,7 +2150,7 @@ class Admin_DataController extends Zend_Controller_Action
$iso=new ISO19115();
$iso->saveDB($this->db,$row['xml']);
//移除中间版本
$sql="delete from mdversion where uuid in (select uuid from mdversion where id=?) and char_length(changelog)<3";
$sql="delete from mdversion where uuid in (select uuid from mdversion where id=?) and changelog is null";
$this->db->query($sql,array($id));
//email to admin & author