修复后台提交元数据到英文系统的问题
This commit is contained in:
parent
f166c3e3ef
commit
0743137fea
|
@ -3340,7 +3340,7 @@ class Admin_DataController extends Zend_Controller_Action
|
||||||
// 保存数据作者信息
|
// 保存数据作者信息
|
||||||
|
|
||||||
// 2. 保存变化记录 save changelog & userid for the latest version
|
// 2. 保存变化记录 save changelog & userid for the latest version
|
||||||
$sql = "UPDATE mdversion SET changelog=?,userid=? WHERE id in (select v.id from mdversion v left join en.geonetworkmetadata g on v.uuid=g.uuid where g.id=? order by v.ts_created desc limit 1)";
|
$sql = "UPDATE en.mdversion SET changelog=?,userid=? WHERE id in (select v.id from en.mdversion v left join en.geonetworkmetadata g on v.uuid=g.uuid where g.id=? order by v.ts_created desc limit 1)";
|
||||||
$this->db->query($sql,array($changelog,$u_id,$id));
|
$this->db->query($sql,array($changelog,$u_id,$id));
|
||||||
|
|
||||||
// 3. 保存数据评审状态
|
// 3. 保存数据评审状态
|
||||||
|
@ -3348,7 +3348,7 @@ class Admin_DataController extends Zend_Controller_Action
|
||||||
$iso=new ISO19115();
|
$iso=new ISO19115();
|
||||||
@$iso->saveDB($this->db,$row['data']);
|
@$iso->saveDB($this->db,$row['data']);
|
||||||
//进入评审库
|
//进入评审库
|
||||||
$sql="insert into mdstatus (uuid,status,userid) select uuid,0,? from en.geonetworkmetadata where id=?";
|
$sql="insert into en.mdstatus (uuid,status,userid) select uuid,0,? from en.geonetworkmetadata where id=?";
|
||||||
$this->db->query($sql,array($u_id,$id));
|
$this->db->query($sql,array($u_id,$id));
|
||||||
//email to admin
|
//email to admin
|
||||||
$mail=new WestdcMailer($this->view->config->smtp);
|
$mail=new WestdcMailer($this->view->config->smtp);
|
||||||
|
@ -3374,7 +3374,7 @@ class Admin_DataController extends Zend_Controller_Action
|
||||||
$this->jsonexit($data);
|
$this->jsonexit($data);
|
||||||
return true;
|
return true;
|
||||||
}catch(Exception $e) {
|
}catch(Exception $e) {
|
||||||
$sql="delete from mdstatus where uuid in (select uuid from en.geonetworkmetadata where id=?)";
|
$sql="delete from en.mdstatus where uuid in (select uuid from en.geonetworkmetadata where id=?)";
|
||||||
$this->db->query($sql,array($id));
|
$this->db->query($sql,array($id));
|
||||||
$msg = "提交失败,请确认权限后重试";
|
$msg = "提交失败,请确认权限后重试";
|
||||||
if($this->debug>0)
|
if($this->debug>0)
|
||||||
|
|
Loading…
Reference in New Issue