修改了查看某数据所有版本的SQL语句
This commit is contained in:
parent
a2d9bc457e
commit
60c5de530a
|
@ -1618,9 +1618,8 @@ class Admin_DataController extends Zend_Controller_Action
|
|||
//view the versions of the data
|
||||
$sql = "SELECT md.title,md.uuid,v.ts_created,v.changelog,v.userid,v.id,u.username,u.realname FROM mdversion v
|
||||
LEFT JOIN metadata md ON md.uuid=v.uuid
|
||||
LEFT JOIN mdauthor a ON md.uuid=a.uuid
|
||||
left join users u on v.userid=u.id
|
||||
WHERE md.title IS NOT NULL AND v.uuid=? AND a.status=1
|
||||
WHERE md.title IS NOT NULL AND v.uuid=?
|
||||
order by v.ts_created desc
|
||||
";
|
||||
$sth = $this->db->prepare($sql);
|
||||
|
@ -2298,6 +2297,9 @@ class Admin_DataController extends Zend_Controller_Action
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}//authorAction() 数据作者管理
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue