修复删除中间版本功能
This commit is contained in:
parent
fb905b5069
commit
3ae7513fbf
|
@ -1982,7 +1982,7 @@ class Admin_DataController extends Zend_Controller_Action
|
||||||
$iso=new ISO19115();
|
$iso=new ISO19115();
|
||||||
$iso->saveDB($this->db,$row['xml']);
|
$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));
|
$this->db->query($sql,array($id));
|
||||||
//修改评审状态为发布,且由其提交的用户进行管理
|
//修改评审状态为发布,且由其提交的用户进行管理
|
||||||
$sql="insert into mdstatus (uuid,status,userid) select uuid,6,? from mdversion where 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=new ISO19115();
|
||||||
$iso->saveDB($this->db,$row['xml']);
|
$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));
|
$this->db->query($sql,array($id));
|
||||||
|
|
||||||
//email to admin & author
|
//email to admin & author
|
||||||
|
|
Loading…
Reference in New Issue